setup axis using plotyy
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi!
I'm trying to setup the length of my axes after using plotyy() command. Can anybody told me how to do that?
The command "axis([xmin,xmax,ymin, ymax])" doesn't work correctly, becouse of plotyy (i have 2 axis).
I want to set up the length of both axes ('y1' and 'y2'). I hope anybode could help me :)
Thanks!
0 Commenti
Risposta accettata
Azzi Abdelmalek
il 13 Lug 2013
Modificato: Azzi Abdelmalek
il 13 Lug 2013
[AX,H1,H2] = plotyy(x1,y1,x2,y2)
set(AX(1),'xlim',[xmin1 xmax1],'ylim',[ymin1 ymax1])
use
set(AX(2),... ) for the second axis
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Two y-axis in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!