Autozoom in a subplot

조회 수: 4 (최근 30일)
Daniel
Daniel 2014년 10월 3일
댓글: Daniel 2014년 10월 4일
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일
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개)

카테고리

Help CenterFile Exchange에서 Visual Exploration에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by