SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: TheLonelyStar <na...@lo...> - 2009年12月29日 20:49:09
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.
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
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.
From: TheLonelyStar <na...@lo...> - 2009年12月29日 22:09:27
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 : 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
> 
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.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /