Ylim on plotyy - setting min value but leaving max automatic

10 ビュー (過去 30 日間)
Jason
Jason 2014 年 11 月 18 日
コメント済み: Jason 2014 年 11 月 18 日
I am using plotyy to plot a graph with 2 y-axis
[AX1,H1,H1] = plotyy(x,y1,x,y2,'plot');
I want the Ylims for both axes to be automatic, except I always want the min y value to be zero. I thought of using something below, but not sure how the get the current (automatically worked out) max value.
set(AX1(1),'YLim',[0 ??],'FontSize',10);
any suggestions?
Thanks Jason

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 11 月 18 日
set(AX1(1),'YLim',[0 inf],'FontSize',10);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTwo y-axis についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by