Le lundi 29 décembre 2008 à 08:17 -0800, mfabulous a écrit :
> Hi,
> 
> I apologize if this was asked before.
> 
> I am trying to implement of a zoom lock over multiple subplots. I.e. I have
> four subplots where the xaxis stretches from some value xmin to some xmax.
> The range is the same for all four plots. Now if the user zooms into a
> different range in one of the four plots, I want to update the ranges of the
> other plots.

Why not using the 'sharex' keywork argument of subplot function?
from matplotlib.pyplot import subplot
S1 = subplot(311)
S2 = subplot(312, sharex=S1)
S3 = subplot(313, sharex=S1)
S1, S2 and S3 will share the same x-range.
-- 
Fabrice Silva <si...@lma.cnrs-mrs.fr>
LMA UPR CNRS 7051 - équipe S2M


------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to