Matplotlib/Pyplot: How to zoom subplots together?

后端 未结 3 428
离开以前
离开以前 2020-12-07 18:21

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

3条回答
  •  有刺的猬
    2020-12-07 18:57

    You can also do this with plt.subplots, if that's your style.

    fig, ax = plt.subplots(3, 1, sharex=True, sharey=True)
    

提交回复
热议问题