MATLAB - How to zoom subplots together?

前端 未结 3 363
野趣味
野趣味 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:32

    To link a pair of figures with linkaxes use:

    figure;imagesc(data1);
    f1h=findobj(gcf,,’type’,’axes’)
    figure;imagesc(data2);
    f2h=findobj(gcf,,’type’,’axes’)
    linkaxes([f1h,f2h],’xy’)
    

提交回复
热议问题