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++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -