Can matplotlib be run from PythonWin IDE in interactive mode?

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.