Stop Rounding of Y Axis Values in Plot

7 ビュー (過去 30 日間)
Joe Tracy
Joe Tracy 2023 年 1 月 19 日
移動済み: Adam Danz 2023 年 1 月 20 日
I am plotting data that i need more than the default rounding to 4 decimal places. I have tried using the "format long" command. this does not work. if I display data (display(a)), it works fine (plenty of digits). but when I plot, it is always rounding the y axis to 4 values. Even if i format the y axis ytickformat('%.6f') , i still get it rounding to 4. Very frustrating. Any help is appreciated. thank you.
  1 件のコメント
Joe Tracy
Joe Tracy 2023 年 1 月 20 日
Yes, thank you. You are right. It was actually working as intended on my graph. I had a conflicting error. Thanks for the reply.

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

回答 (1 件)

Mathieu NOE
Mathieu NOE 2023 年 1 月 19 日
移動済み: Adam Danz 2023 年 1 月 20 日
seems to work fine :
figure,
plot(0.25*rand(10,1))
ytickformat('%.6f')

カテゴリ

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

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by