>>>>> "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
|