Primary Y-axis limits can be set with ylim command.how to set limits for secondary Y-axis??(when ploted with plotyy command)

 채택된 답변

Sean de Wolski
Sean de Wolski 2012년 5월 21일

1 개 추천

Use the handle to the second y-axis:
[ax h1 h2] = plotyy(1:10,1:10,1:10,10:-1:1);
ylim(ax(2),[0 pi]);

댓글 수: 2

Someshwar Kale
Someshwar Kale 2016년 10월 2일
Thank You sir.
Mohamed Nedal
Mohamed Nedal 2018년 4월 14일
Hello, could you please tell me how to fix the 'ticks' of the right y-axis in this plot?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File 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