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

 Akzeptierte Antwort

Sean de Wolski
Sean de Wolski am 21 Mai 2012

1 Stimme

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 Kommentare

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by