python - Cannot import NavigationToolbar from matplotlib.backends.backend_gtk -


i'm running program received friend i'm not able solve error. initial part of code is:

import matplotlib matplotlib.use('gtk') matplotlib.figure import figure matplotlib.axes import subplot matplotlib.backends.backend_gtk import figurecanvasgtk, navigationtoolbar, navigationtoolbar2gtk  numpy import zeros import gtk import gtk.glade  import scipy import scipy.interpolate import scipy.io 

when try run code, receive error:

file "analeem.py", line 11, in <module> matplotlib.backends.backend_gtk import figurecanvasgtk, navigationtoolbar, navigationtoolbar2gtk importerror: cannot import name navigationtoolbar 

i'm running code under ubuntu, matplotlib installed.

thanks in advance,

matteo


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -