Thomas Pfaff-3 wrote:
> 
> Hi,
> 
> does that mean that it works for you with PyScripter?
> Right now the only way to do more than one plot with MPL with PyScripter
> is 
> to reinitialize the remote python interpreter over and over again.
> If you found a way around that I would be glad to hear about it.
> 
> ...
> 

I can get two plots from Pyscripter as follows:
Find out where your matplotlibrc file is

>>> import matplotlib
>>>matplotlib.get_configdir()
'H:\\.matplotlib'

edit the matplotlib file in this directory (or copy the example from the
matplotlib site)to set interactive to True and the backend to one of the Tk
or wx options:

backend      : WXAgg
...
interactive  : True      # see
http://matplotlib.sourceforge.net/interactive.html

make sure there is no # at the front of the interactive line

Choose the matching external Python Engine in PyScripter ie. Run>Python
Engine > Remote (Wx)

Then this example should give two interactive plots:

>>> import pylab
>>> pylab.figure(1)

>>> pylab.plot([1,2,3])

>>> pylab.xlabel('X label for 1st plot')

>>> pylab.figure(2)

>>> pylab.plot([10,20,30])

>>> pylab.xlabel('X label for 2nd plot')

go back and add a y label to the first plot

>>> pylab.figure(1)

>>> pylab.ylabel('Y label for 1st plot')




-- 
View this message in context: 
http://www.nabble.com/Can-matplotlib-be-run-from-PythonWin-IDE-in-interactive-mode--tp20822638p20888060.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to