link axis subplots

   Hi,

    > Is it possible in python/matplotlib to link the x-axis
    > in the subplots. So if you zoom in in one of the graphs of
    > the subplot, that then the other subplots also zoom in. In
    > Matlab this function is called 'linkaxis'.

ax1 = subplot(211)
ax1.plot(rand(20))

ax2 = subplot(212, sharex=ax1)
ax2.plot(rand(20))

JDH

By the way,

does anyone look into the possibility of changing the feature after
drawing ?

I already ask this question a few time ago but it still in suspend.

thank you

sam

John Hunter wrote:

···

<mippes@…32…>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEVMatplotlib-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/matplotlib-users

-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Samuel Garcia
Universite Claude Bernard LYON 1
CNRS - UMR5020, Laboratoire des Neurosciences et Systemes Sensoriels
50, avenue Tony Garnier
69366 LYON Cedex 07
FRANCE
Tél : 04 37 28 74 64
Fax : 04 37 28 76 01
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~