Re: [Matplotlib-users] out of curiosity...

2007-06-22 Thread John Hunter
On 6/22/07, Roman Bertle <[EMAIL PROTECTED]> wrote: > very nice! The only remaining problem is that an analysis library > functions might return several figures. In my case the data depends on > several parameters, and the function returns a dictionary containing for each > parameter set statistic

Re: [Matplotlib-users] out of curiosity...

2007-06-22 Thread Roman Bertle
* Ryan Krauss <[EMAIL PROTECTED]> [070622 09:47]: > I don't think we are actually disagreeing with one another. I have > written the kind of library you are talking about and used the same > library from ipython and in a wxpython app. All of my plotting > functions expect a fig instance as an inp

Re: [Matplotlib-users] out of curiosity...

2007-06-21 Thread Ryan Krauss
I don't think we are actually disagreeing with one another. I have written the kind of library you are talking about and used the same library from ipython and in a wxpython app. All of my plotting functions expect a fig instance as an input. When calling the library from ipython, I pass in a fi

Re: [Matplotlib-users] out of curiosity...

2007-06-21 Thread Roman Bertle
Hello, thank you very much for you answer. The oddness clears if you consider that the generating of the figure might be done in an external library. Imagine a data analyze package with functions with can also generate one or more plots. As a library I think here the OO interface is most appropria

Re: [Matplotlib-users] out of curiosity...

2007-06-11 Thread Roman Bertle
* John Hunter <[EMAIL PROTECTED]> [070611 16:20]: > So the answer of which is better is a question of skill level and > context, but my simple advice is to use the pylab syntax from the > interactive python shell (and "ipython -pylab" is ideal for this) and > the API everywhere else. Most of my sc

Re: [Matplotlib-users] out of curiosity...

2007-06-11 Thread Trevis Crane
> -Original Message- > From: John Hunter [mailto:[EMAIL PROTECTED] > Sent: Monday, June 11, 2007 9:08 AM > To: Trevis Crane > Cc: matplotlib-users@lists.sourceforge.net > Subject: Re: [Matplotlib-users] out of curiosity... > > On 6/11/07, Trevis Crane &

Re: [Matplotlib-users] out of curiosity...

2007-06-11 Thread John Hunter
On 6/11/07, Trevis Crane <[EMAIL PROTECTED]> wrote: > Coming from MATLAB, I started using matplotlib in the same fashion (and was > very appreciative of the similariry). That is, I would import pylab and > call the plotting functions as necessary. However, after seeing some of how > others are u

[Matplotlib-users] out of curiosity...

2007-06-11 Thread Trevis Crane
Coming from MATLAB, I started using matplotlib in the same fashion (and was very appreciative of the similariry). That is, I would import pylab and call the plotting functions as necessary. However, after seeing some of how others are using matplotlib, it seems most people use axes object methods