I made some figure in a loop and i want to close after the figure show.
thx
lo
I made some figure in a loop and i want to close after the figure show.
thx
lo
leau2001 wrote:
I made some figure in a loop and i want to close after the figure show.
Not absolutely sure what you mean, but to produce some plots and save
them in a loop I do
f = figure()
for i in range(..):
plot(...)
savefig(...)
f.clf() # clear figure for re-use
close(f)
cheers,
steve
--
Random number generation is the art of producing pure gibberish as
quickly as possible.
Are you using TkAgg?
Then it should have a close button.
Use it.
By using show() you entered the Tkinter mainloop,
so you cannot close it from the console.
(Or so I believe.)
Cheers,
Alan Isaac
On Tue, 06 Jun 2006, apparently wrote:
I made some figure in a loop and i want to close after the figure show.