Editing ylim for multiple axes when using handles?

10 Ansichten (letzte 30 Tage)
Nic Thibodeaux
Nic Thibodeaux am 13 Feb. 2013
I am trying to plot two sets of data on a single figure. The method implemented is use of handles to refer to each data set:
[AX,H1,H2] = plotyy(x1, y1, x2, y2);
When trying to set y axes limits, the documentation shows usage of the simple ylim function when referring to handles:
ylim(axes_handle,...)
However, this doesn't implement the change in limits. How do I individually change the y limits for each axis?

Antworten (1)

Azzi Abdelmalek
Azzi Abdelmalek am 14 Feb. 2013
Bearbeitet: Azzi Abdelmalek am 14 Feb. 2013
set(AX(1),'ylim',[0 10])
set(AX(2),'ylim',[1 100])

Kategorien

Mehr zu Two y-axis finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by