[Matplotlib-users] matplotlib.mlab PCA analysis

2009-02-10 Thread Marjolaine Rouault
Hi, I am struggling to do a PCA analysis on a masked array. Anybody has suggestions on how to deal with masked array when doing PCAs? Best regards, Marjolaine. -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format

Re: [Matplotlib-users] matplotlib.mlab PCA analysis

2009-02-10 Thread Stephane Raynaud
Hi Marjolaine, On Tue, Feb 10, 2009 at 12:31 PM, Marjolaine Rouault mroua...@csir.co.zawrote: Hi, I am struggling to do a PCA analysis on a masked array. Anybody has suggestions on how to deal with masked array when doing PCAs? You need to remove missing values at each time step. This

Re: [Matplotlib-users] Memory leaks in a web application

2009-02-10 Thread Michael Droettboom
This is an instance of the OP's problem again. Your example is using the pyplot (i.e. Matlab-like) interface, in which case, you must explicitly close each figure when you're done with it, like follows: plt.close(fig) del fig only deletes your local reference to the figure. There is

Re: [Matplotlib-users] Memory leaks in a web application

2009-02-10 Thread Gerry Steele
Thanks Michael , I had somehow put myself under the impression i was using he OO version of the api but it is much more clear now. Memory issues now look better. Thanks. 2009/2/10 Michael Droettboom md...@stsci.edu: This is an instance of the OP's problem again. Your example is using the

Re: [Matplotlib-users] Memory leaks in a web application

2009-02-10 Thread John Hunter
On Tue, Feb 10, 2009 at 7:55 AM, Gerry Steele gerry.ste...@gmail.com wrote: Thanks Michael , I had somehow put myself under the impression i was using he OO version of the api but it is much more clear now. Memory issues now look better. There is room for confusion. A common usage pattern,

[Matplotlib-users] Problem Using/Installing the matplotlib

2009-02-10 Thread Gustavo Blando
Hi, I am new to Python, and I am trying to install the matplotlib but it is not working. I would appreciate your help. I am using Python with the PythonWin environment. I have created a PYTHONPATH on my environment variables to make sure I point to all the libraries. I have installed the

Re: [Matplotlib-users] Problem Using/Installing the matplotlib

2009-02-10 Thread Robert Kern
On 2009-02-10 15:26, Gustavo Blando wrote: Hi, I am new to Python, and I am trying to install the matplotlib but it is not working. I would appreciate your help. I am using Python with the PythonWin environment. I have created a PYTHONPATH on my environment variables to make sure I

Re: [Matplotlib-users] Problem Using/Installing the matplotlib

2009-02-10 Thread Gustavo Blando
Awesome Robert, thanks. Here is the Python path.

Re: [Matplotlib-users] Problem Using/Installing the matplotlib

2009-02-10 Thread Robert Kern
On 2009-02-10 16:50, Gustavo Blando wrote: Awesome Robert, thanks. Here is the Python path.

Re: [Matplotlib-users] Memory leaks in a web application

2009-02-10 Thread A B
On Mon, Feb 9, 2009 at 9:59 PM, Jouni K. Seppänen j...@iki.fi wrote: Ryan May rma...@gmail.com writes: On Mon, Feb 9, 2009 at 2:37 PM, A B python6...@gmail.com wrote: If you're using the full OO interface and creating a figure by making an instance of Figure(), then you shouldn't need

[Matplotlib-users] plot() in a loop vs multiple curves with a single plot()

2009-02-10 Thread A B
Hi, I have the following code and am wondering whether there is a more efficient way to plot multiple curves. Maybe somehow accumulating the data into a single variable, then calling plot once ... Thanks for any ideas. for ofile in files: d = mlab.csv2rec(ofile, names = ['date','field'])