From: Jeff W. <js...@fa...> - 2009-12-29 21:10:41
|
TheLonelyStar wrote: > Hi, > > I am trying to get the exaple from here: > http://matplotlib.sourceforge.net/examples/animation/animate_decay_tk_blit.html > > I copied it into a file and tried to execute it. > I get: > > File "test.py", line 56, in <module> > manager.window.after(100, run) > AttributeError: 'gtk.Window' object has no attribute 'after' > > What is wrong? How can I correct that? > > Thanks! > Nathan > Nathan: You're using the GTKAgg backend (the default), whereas the script expects the TkAgg backend. Either edit your matplotlibrc file to set TkAgg as your default backend, or run the script like this: python animate_decay_tk_blit.py -dTkAgg -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-113 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg |