Can not get animated matplotlib example to work

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

···

--
View this message in context: http://old.nabble.com/Can-not-get-animated-matplotlib-example-to-work-tp26959581p26959581.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

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 : Jeffrey.S.Whitaker@...259...
325 Broadway Office : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web : Jeffrey S. Whitaker: NOAA Physical Sciences Laboratory

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 : Jeffrey.S.Whitaker@...259...
325 Broadway Office : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web : Jeffrey S. Whitaker: NOAA Physical Sciences Laboratory

------------------------------------------------------------------------------
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
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

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.

TheLonelyStar wrote:

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 : Jeffrey.S.Whitaker@...259...
325 Broadway Office : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web : Jeffrey S. Whitaker: NOAA Physical Sciences Laboratory

------------------------------------------------------------------------------
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
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

Hey,

Thanks, that works. Is it also possible to get it to work with the GTKAgg
backend?

Thanks!
Nathan

I found the examples for the other backends. Sorry for not looking better
before

···

--
View this message in context: http://old.nabble.com/Can-not-get-animated-matplotlib-example-to-work-tp26959581p26961182.html
Sent from the matplotlib - users mailing list archive at Nabble.com.