[matplotlib-devel] An easier way to create figure and group of axes; useful?

2010-02-17 Thread Fernando Perez
Howdy, in trying to teach a more structured use of mpl, I keep getting annoyed by the whole figure(), add_subplot(), grab axes dance. I've also seen students get confused by it. Does something along these lines sound useful to have in the core (see attached)? In use, below. You'd normally

Re: [matplotlib-devel] An easier way to create figure and group of axes; useful?

2010-02-17 Thread Christopher Barker
Fernando Perez wrote: in trying to teach a more structured use of mpl, good for you! I always felt that to efficiently use the OO interface, there needed to be some more utility functions like this: In [37]: figaxes() Out[37]: (matplotlib.figure.Figure object at 0xa24b4cc,

Re: [matplotlib-devel] An easier way to create figure and group of axes; useful?

2010-02-17 Thread David Warde-Farley
On 17-Feb-10, at 6:52 PM, Fernando Perez wrote: Howdy, in trying to teach a more structured use of mpl, I keep getting annoyed by the whole figure(), add_subplot(), grab axes dance. I've also seen students get confused by it. Does something along these lines sound useful to have in the

Re: [matplotlib-devel] An easier way to create figure and group of axes; useful?

2010-02-17 Thread Fernando Perez
On Wed, Feb 17, 2010 at 7:27 PM, David Warde-Farley d...@cs.toronto.edu wrote: An effusive yes, yes, good god yes! from this mpl-devel lurker. Thanks, that's two good pluses. Any suggestions on name changes, or other fixes to make? Otherwise, once I find a free minute I'll put it in. Should

Re: [matplotlib-devel] An easier way to create figure and group of axes; useful?

2010-02-17 Thread John Hunter
On Wed, Feb 17, 2010 at 8:29 PM, Fernando Perez fperez@gmail.com wrote: On Wed, Feb 17, 2010 at 7:27 PM, David Warde-Farley d...@cs.toronto.edu wrote: An effusive yes, yes, good god yes! from this mpl-devel lurker. Thanks, that's two good pluses. Any suggestions on name changes, or

Re: [matplotlib-devel] An easier way to create figure and group of axes; useful?

2010-02-17 Thread Fernando Perez
On Wed, Feb 17, 2010 at 10:17 PM, John Hunter jdh2...@gmail.com wrote: I think the name figsubplots or fig_subplots is better because you are creating Subplot instances.  Alternatively, you might want to consider simply subplots which returns just the list of subplots: the figure can always be

Re: [matplotlib-devel] missing projections

2010-02-17 Thread Phillip M. Feldman
This sounds great. Thanks! So far I haven't figured out how to use it. I downloaded the matplotlib SVN and installed it, but was not able to find nsper_demo.py. Phillip Jeff Whitaker wrote: Phillip M. Feldman wrote: Jeff Whitaker wrote: Phillip M. Feldman wrote: Andrew Straw wrote: Jeff