필터 지우기
필터 지우기

How to reset ylim from figure window on a two axis plot?

조회 수: 10 (최근 30일)
Tom
Tom 2016년 5월 2일
답변: Robert 2016년 5월 2일
I have recently switched to Matlab version 2016a. Previously I was using 2013b (please don't judge). I would frequently make two axes plots using plotyy, setting the y limits of each axis. After making the graph, I would zoom into areas of interest using the zoom tool on the figure tool bar. In order to return to the y limits I previously established on both axes, all I had to do was double click on the plot with the zoom tool or pan tool. If I do this in version 2016a it appears to only reset the axis I am on.
Is there a way to reset the y limits on a two axes plot for both the left and the right axis in version 2016a using the mouse?
Thanks,
-Tom-

답변 (1개)

Robert
Robert 2016년 5월 2일
You could use the linkaxes function on your two axes handles. Then MATLAB will update whichever you didn't update to match the one you did.

카테고리

Help CenterFile Exchange에서 Two y-axis에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by