setup axis using plotyy

조회 수: 11 (최근 30일)
Harald
Harald 2013년 7월 13일
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!

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 7월 13일
편집: Azzi Abdelmalek 2013년 7월 13일
[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
  댓글 수: 1
Harald
Harald 2013년 7월 13일
Thank you very much! This is what i was looking for!! Have a nice weekend!

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

추가 답변 (0개)

카테고리

Help CenterFile 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