I have plots of 3-axis accelerometer time-series data (t,x,y,z) in separate subplots I\'d like to zoom together. That is, when I use the \"Zoom to Rectangle\" tool on one p
The easiest way to do this is by using the sharex and/or sharey keywords when creating the axes:
sharex
sharey
from matplotlib import pyplot as plt ax1 = plt.subplot(2,1,1) ax1.plot(...) ax2 = plt.subplot(2,1,2, sharex=ax1) ax2.plot(...)