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

 Réponse acceptée

Sean de Wolski
Sean de Wolski le 21 Mai 2012

1 vote

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 commentaires

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by