Re: [Matplotlib-users] close a figure after show , when plotting many figures from script- using matplotlib.pyplot.figure

2012-10-17 Thread hari jayaram
Thanks Benjamin, Sterling and Damon for your prompt help However I am still not able to achieve what I wanted . I can get the headless script to work just great where it saves all the figures and I can view them after the script is done running. But somehow when I try the figure number method

Re: [Matplotlib-users] close a figure after show , when plotting many figures from script- using matplotlib.pyplot.figure

2012-10-17 Thread Sterling Smith
Hari, While I am not intimately acquainted with the inner working of the interactive matplotlib functionality, I have seen that it tries to not update the figure if you ask for some change to it while it is trying to update the figure. That sounds circular, but oh well. Perhaps you could

Re: [Matplotlib-users] close a figure after show , when plotting many figures from script- using matplotlib.pyplot.figure

2012-10-17 Thread hari jayaram
Hi Sterling , Thanks for your email. I definitely think I was running into issues with the figure updating while it was trying to draw , constantly. I experimented with sleep ..but didnt try hard enough to get it to work. That said, I have a very nice solution to my problem using the

[Matplotlib-users] close a figure after show , when plotting many figures from script- using matplotlib.pyplot.figure

2012-10-16 Thread hari jayaram
Hi I am a relative newbie to matplotlib. I have a python script that handles a dataset that comprises 384 sets of data. At the present moment , I read in a set of data - process it - and the create a figure using code shown below. I am using windows with the default backend ( I think I set it to

Re: [Matplotlib-users] close a figure after show , when plotting many figures from script- using matplotlib.pyplot.figure

2012-10-16 Thread Sterling Smith
Hari, You can give a number to figure(), as in figure(1), and it will reuse figure 1. Also, you can close figure 1 with pyplot.close(1). -Sterling On Oct 16, 2012, at 8:25AM, hari jayaram wrote: Hi I am a relative newbie to matplotlib. I have a python script that handles a dataset that

Re: [Matplotlib-users] close a figure after show , when plotting many figures from script- using matplotlib.pyplot.figure

2012-10-16 Thread Damon McDougall
On Tue, Oct 16, 2012 at 5:09 PM, Sterling Smith smit...@fusion.gat.com wrote: Hari, You can give a number to figure(), as in figure(1), and it will reuse figure 1. Also, you can close figure 1 with pyplot.close(1). -Sterling On Oct 16, 2012, at 8:25AM, hari jayaram wrote: Hi I am a

Re: [Matplotlib-users] close a figure after show , when plotting many figures from script- using matplotlib.pyplot.figure

2012-10-16 Thread Benjamin Root
On Tue, Oct 16, 2012 at 11:25 AM, hari jayaram hari...@gmail.com wrote: Hi I am a relative newbie to matplotlib. I have a python script that handles a dataset that comprises 384 sets of data. At the present moment , I read in a set of data - process it - and the create a figure using code