MATLAB - How to zoom subplots together?

前端 未结 3 362
野趣味
野趣味 2020-12-02 17:00

I have multiple subplots in one figure. The X axis of each plot is the same variable (time). The Y axis on each plot is different (both in what it represents and the magnit

3条回答
  •  佛祖请我去吃肉
    2020-12-02 17:12

    Use the built-in linkaxes function as follows:

    linkaxes([hAxes1,hAxes2,hAxes3], 'x');
    

    For more advanced linking (not just the x or y axes), use the built-in linkprop function

提交回复
热议问题