I ran the following script on IDLE and the Boa-constructor. I had a problem
on both of these when I
didn't include:
matplot.interactive(False)
Thanks for the info on matplotlibrc.
···
----- Original Message -----
From: "John Hunter" <jdhunter@...4...>
To: "Ryugan Mizuta" <ryuganmizuta@...209...>
Cc: <matplotlib-users@lists.sourceforge.net>; "Barry Drake"
<bldrake@...26...>
Sent: Wednesday, June 16, 2004 6:56 AM
Subject: Re: [Matplotlib-users] Re:Newbie Question...
> Thanks for all who gave me a reply.... Somehow the
> following script worked...:import matplotlib
matplotlib.interactive(False)
matplotlib.use("WX")from matplotlib.matlab import *
plot([1,2,3,4])
show()I just want to point out that in my opinion, the easiest way to set
the default backend is to use your matplotlibrc file -
http://matplotlib.sourceforge.net/faq.html#MATPLOTLIBRC. For windows,
this is found at C:\Python23\share\matplotlib\.matplotlibrc.You can achieve the same effect by setting
backend : WX # the default backend
interactive : False # see
http://matplotlib.sourceforge.net/interactive.html
which will not be so invasive to your script (ie, you can change the
default behavior of your scripts w/o changing the scripts
themselves). Usingimport matplotlib
matplotlib.interactive(False)
matplotlib.use("WX")should be something you reserve to depart from the desired default
behavior.Glad it's working for you! I have two more questions I am curious
about, for both you and Barry* Does WXAgg also work?
* In which IDEs do you find this combination works?
Following your question yesterday I added the FAQ entry
http://matplotlib.sourceforge.net/faq.html#FREEZE, and I'd like to
update it to make it as complete as possible.JDH