Change minimum y-limits on a plot?

38 ビュー (過去 30 日間)
cocopuffs
cocopuffs 2014 年 8 月 14 日
コメント済み: cocopuffs 2014 年 8 月 14 日
Hi guys.
I have a grpah that for some reason starts at .5 on the y axis instead of 0. I want to change the minimum limit on the y axis to 0. I have tried using ylim but for that I also need to input the max limit. However I ONLY want to change the minimum y-limit as the maximum limit is already correct.
Thank you in advance!

採用された回答

Joakim Magnusson
Joakim Magnusson 2014 年 8 月 14 日
編集済み: Joakim Magnusson 2014 年 8 月 14 日
Maybe you are looking for this?
yLim = get(gca,'YLim');
set(gca,'YLim', [0 yLim(2)]);
  1 件のコメント
cocopuffs
cocopuffs 2014 年 8 月 14 日
Thank you :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by