On Fri, Sep 24, 2010 at 12:30 PM, Russell E. Owen <ro...@uw.edu> wrote:
> I'm making a set of plots (a strip chart) stacked on top of each other,
> all sharing the same X axis (time).
>
> So far it appears that to get the X axis of each Subplot to match I have
> to set its properties independently.
>
> Is there some way to tie them all together so that a user can set the
> properties of one and have it propagate? I'm particularly concerned
> about tick marks and the X grid lines; I only want to show tick labels
> on the bottom-most Subplot.
>
> I suppose one possibility is to create some kind of object on which I
> can call Subplot.xaxis methods and have it apply those changes to all
> the Subplots. Has anyone done this?
>
> -- Russell
>
>
Russel, maybe this example might help?
http://matplotlib.sourceforge.net/examples/pylab_examples/shared_axis_demo.html
There are also some more advanced subplot layout methods available called
axis_grid1 in the mpl_toolkits.
http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.html
I hope this helps!
Ben Root
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users