Hello,
I have a subplot of Three plots. Whenever I zoom in the first plot, I want the second plot to zoom aswell.
So when I zoom in one thing in my first plot, I want to be able to zoom in at the same Place in the second plot.
My first two plots are two different values on the y-scale vs the same values on the x-scale.
Thank you.

 採用された回答

Joseph Cheng
Joseph Cheng 2014 年 10 月 3 日

1 投票

you can use the linkaxes() to do just that.
ax(1) = subplot(2,2,1);
plot(rand(1,10)*10,'Parent',ax(1));
ax(2) = subplot(2,2,2);
plot(rand(1,10)*100,'Parent',ax(2));
linkaxes(ax,'x');
% Interactively zoom and pan to see link effect

1 件のコメント

Daniel
Daniel 2014 年 10 月 4 日
Thank you.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeData Exploration についてさらに検索

タグ

質問済み:

2014 年 10 月 3 日

コメント済み:

2014 年 10 月 4 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by