From: TheLonelyStar <na...@lo...> - 2009-12-29 21:14:57
|
Jeff Whitaker wrote: > > 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 > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > Hey, Thanks, that works. Is it also possible to get it to work with the GTKAgg backend? Thanks! Nathan -- View this message in context: http://old.nabble.com/Can-not-get-animated-matplotlib-example-to-work-tp26959581p26960416.html Sent from the matplotlib - users mailing list archive at Nabble.com. |