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

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -