SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Gary P. <pa...@in...> - 2004年05月28日 14:02:27
It seems that I can't completely override my choice of backend.
E.g., I have set TkAgg as my default back end. Yet if I modify
examples/anim.py to include matplotlib.use('GTKAgg') or
matplotlib.use('GTK') it will not run. A window appears, but it contains a
static, non-changing graph. To run anim.py, I have to modify matplotlibrc.
Same behavior the other way: with GTKAgg selected in matplotlibrc, I can't
run Todd's anim_tk.py, even with TkAgg selected in the script. Am I doing
something stupid?
-gary
From: John H. <jdh...@ac...> - 2004年05月28日 14:41:44
>>>>> "Gary" == Gary Pajer <pa...@in...> writes:
 Gary> It seems that I can't completely override my choice of
 Gary> backend. E.g., I have set TkAgg as my default back end.
 Gary> Yet if I modify examples/anim.py to include
 Gary> matplotlib.use('GTKAgg') or matplotlib.use('GTK') it will
 Gary> not run. A window appears, but it contains a static,
 Gary> non-changing graph. To run anim.py, I have to modify
 Gary> matplotlibrc. Same behavior the other way: with GTKAgg
 Gary> selected in matplotlibrc, I can't run Todd's anim_tk.py,
 Gary> even with TkAgg selected in the script. Am I doing
 Gary> something stupid?
It works as expected for me, both ways. I can put TkAgg in my rc and
then matplotlib.use('GTKAgg') in anim.py and it works. Ditto the
other way around. Any chance you are working in an IDE? These changes
occur at module load time, and in an IDE such as IDLE, matplotlib will
only be loaded once.
JDH
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 によって変換されたページ (->オリジナル) /