Info
この質問は閉じられています。 編集または回答するには再度開いてください。
why is the green graph (pco2) not coming in the complete range of x-axis? However it is covering the complete range. i have used plotyyy function to create multi y axis plot.
2 ビュー (過去 30 日間)
古いコメントを表示
<<


>>
5 件のコメント
回答 (1 件)
dpb
2017 年 10 月 20 日
編集済み: dpb
2017 年 10 月 20 日
Oh; my eyes missed the third 'y' in plotyyy; that must be a FEX submittal.
ax=plotyyy(t',sst,t',pco2,t',sss);
datetick('x','mmm-yy')
set(ax(1),'XTick',[])
The problem isn't the y data, it's that you haven't set all three axes to the same range and labelling with datetick and/or xlim to make them match up. Which is the target of the one datetick call is whichever was that returned by gca at the time; you need to pass the axes handles array to it...
datetick(ax,'x','mmm-yy')
set(ax(2:3),'XTick',[])
Probably best practice would be you also use linkaxes to link the three x-axes so they will remain in concert automagically...see
doc linkaxes % for details there.
0 件のコメント
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
