problem with xtick in plotyy

Hello,
I have
x1 = 1 to 60 min
x2 = 1 to 30 min
Y1 = values
Y2 = values
Note = all are having same vectors
if i use plotyy command i.e. plotyy(x1,y1,x2,y2) it gives me two xtick and yaxis label that looks weird. Please give me the solution to this problem. Thanks

댓글 수: 3

Azzi Abdelmalek
Azzi Abdelmalek 2013년 9월 6일
Do you think that weird xtick is enough information to know what is your problem?
Well,
plotyy(1:60,rand(1,60),1:30,rand(1,30))
looks pretty much like I'd expect here...insufficient data to know what "weird" you got or why.
Are the time vectors datenum values, perchance, w/o having used datetick()?
Jan
Jan 2013년 9월 8일
Please do not paraphrase your intention, but the real Matlab code. It is not clear, what "x1 = 1 to 60 min" exactly means.

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Two y-axis에 대해 자세히 알아보기

태그

질문:

2013년 9월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by