[Matplotlib-users] New subplots from 1.0 + shared axis

2010-08-09 Thread Filipe Fernandes
Hello list,

I enjoyed the new feature:
fig, axarr = plt.subplots(2, 2)

However, I failed to understand how to use the shared axis option with 
this new feature.

The docstring for sunplots has the sharex(y) option, but my ax are 
being created now!? Is that a chicken and egg problem? Or I'm failing to 
understand the logic here.

Thanks, Filipe.

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] New subplots from 1.0 + shared axis

2010-08-09 Thread Filipe Pires Alvarenga Fernandes
On Mon, Aug 9, 2010 at 12:22, Fernando Perez fperez@gmail.com wrote:
 On Mon, Aug 9, 2010 at 8:48 AM, Filipe Fernandes ocef...@gmail.com wrote:

 The docstring for sunplots has the sharex(y) option, but my ax are
 being created now!? Is that a chicken and egg problem? Or I'm failing to
 understand the logic here.

 Don't worry: when you indicate that you want to share axes (x or y),
 subplots() tracks that and enables it as it creates the axis objects.
 Give it a try and see if it works :)

 Cheers,

 f



Great, just now I realized that the option is sharex(y)=True/False and
no longer sharex=ax1.
It sacrifice a more fine control, but simplify the processes for the
majority of the plots that I produce.

Thanks!

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] New subplots from 1.0 + shared axis

2010-08-09 Thread Fernando Perez
On Mon, Aug 9, 2010 at 11:49 AM, Filipe Pires Alvarenga Fernandes
ocef...@gmail.com wrote:

 It sacrifice a more fine control, but simplify the processes for the
 majority of the plots that I produce.

Yes, that was the idea.  We figured that if you need very fine-grained
control over axis sharing in complex ways, you're probably OK using
the manual API.  But for the vast majority of users this seemed like a
decent solution.

It could in the long run be extended to allow passing of a list of
axis indices to activate sharing for x/y on, though.  Patches welcome
:)

Cheers,

f

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users