How to fix the scaling of axis?

27 ビュー (過去 30 日間)
Mahesh
Mahesh 2014 年 11 月 25 日
コメント済み: Geoff Hayes 2014 年 11 月 25 日
Hi, I have a plot from matlab as show. However, I would like to format the scaling of y axis insuch a that upper limit is 1 and lower limit is 0.7. I have tried none of them works. Could you please help me so that I can truncate the plot by decimal place.
This will help me a lot.
Thanks in advance. Mahesh

採用された回答

Geoff Hayes
Geoff Hayes 2014 年 11 月 25 日
Mahesh - try using ylim to set the y-axis limits. In your case, the code would be
ylim([0.7 1]);
  5 件のコメント
Mahesh
Mahesh 2014 年 11 月 25 日
In this sense, I want to truncate the axis like corresponding to 0.718 as 0.6 in lower value and 0.9 in upper value. So I am looking a way to convert like this so that I can set into axis limits. Thanks
Mahesh
Geoff Hayes
Geoff Hayes 2014 年 11 月 25 日
Mahesh - but that is your choice to set the limits. Why 0.6 and not 0.7? What is 0.718 - the minimum value on the y-axis or something else?

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

その他の回答 (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