From: John H. <jdh...@ac...> - 2004-09-01 19:21:04
|
>>>>> "HotPop" == HotPop <pa...@ho...> writes: HotPop> Python 2.3.4 on XP , latest matplotlib The use 'WX' HotPop> command is being ignored and the examples always come up HotPop> in Tkinter. Funny thing is, before the latest XP install HotPop> it used to work as advertized (same versions of HotPop> everything). Also, matplotlib.get_backend() reports HotPop> correctly before and after the use command (tkagg before, HotPop> wx after), and the commandline -dWX works, though HotPop> sometimes incredibly slowly (for "tale of two subplots"). HotPop> I've tried the wxpython embedding program using 2 splitter HotPop> windows in a recent mail thread, and that works, too. HotPop> Any ideas or ways to debug this ? I assume you are using use *before* you import matplotlib.matlab? Eg import matplotlib matplotlib.use('WX') import matplotlib.matlab ... ANd you are running your script from the shell. In an IDE, if matplotlib.matlab has already been imported, and you rerun your script from the IDE, your 'use' calls will be w/o effect. Thus it's important to test from a shell (tough on win32, I know), or double click the script to insure a new python interpreter. I'm on the road en route to the SciPy conference, so will be mostly out of touch for a few days.... Hope this helps, JDH |