GUI Zoom with multiple plots
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi,
I have a gui which has two plots and a toolbar that has a zoom in and zoom out feature.
both plots share the same x data
x = [1,2,3,4,5];
but different y data
y1 = [1,1,2,2,3];
y2 = [2,3,4,3,2];
I want to be able to zoom on one of the plots and it cause both plots to zoom in rather than just the plot that is clicked with the zoom tool.
Is this possible?
I would like the same thing to happen when using the 'draw a box' style zoom feature too if possible.
댓글 수: 0
채택된 답변
Angel Garcimartín
2013년 10월 16일
You can have a look to the function linkaxes.
It's more or less like this:
ax(1)=axes ...
plot ...
ax(2)=axes ...
plot ...
linkaxes(ax)
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Exploration에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!