Thanks John,
but it doesn't work the way I would like it. I changed the script a
little bit and added a hold, but there is a problem with the focus (with
matplotlib-0.62.4.win32-py2.3.exe).
from matplotlib.matlab import *
import EasyDialogs
from numarray import *
x = arange(400.)*0.01+1.
y = x**2*exp(x)
for i in range(3):
clf()
figure(i+1, figsize=(11.0,7.5))
lines=semilogy(x, abs(y), 'r-')
set(lines, 'linewidth', 2.0)
title('test')
xlabel('x')
ylabel('y')
grid('on')
draw()
fname = 'test' + str(i) +'.png'
savefig(fname, dpi=250)
hold(True)
resp = EasyDialogs.AskYesNoCancel("Next ?", default=1)
if resp == 1:
hold(False)
else:
hold(False)
show()
Anybody can help?
With matplotlib-0.61.0-numarray0.9-win32-py2.3 I have the desired
behaviour with the following script, although show is called several
times:
from numarray import *
from matplotlib.matlab import *
x =3D arange(400.)*0.01+1.
y =3D x**2*exp(x)
for i in range(3):
clf()
Figure(figsize=3D(11.0,7.5))
lines=3Dsemilogy(x, abs(y), 'r-')
set(lines, 'linewidth', 2.0)
title('test')
xlabel('x')
ylabel('y')
grid('on')
fname =3D 'test' + str(i) +'.png'
savefig(fname, dpi=3D250)
show()
I want the possibility to have a look on each of the figures, e.g. zoom,
after they have been created.
Markus