Matplotlib/Pyplot: How to zoom subplots together?

后端 未结 3 520
离开以前
离开以前 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:50

    Interactively this works on separate axes

    for ax in fig.axes:
        ax.set_xlim(0, 50)
    fig.draw()
    

提交回复
热议问题