MATLAB Answers

How to show all decimals in axis?

3 ビュー (過去 30 日間)
Philippe Corner
Philippe Corner 2018 年 8 月 3 日
回答済み: Adam 2018 年 8 月 3 日
By default, the axis in matlab plots show the number of decimals simplified by x10^#, how could we obtain this values in axes changing:
from 6.5 x10^5 to 650000?
I have seen that this code:
ax.YAxis.TickLabelFormat = '%.5f';
makes this
6.5 x10^5 to 6.50000 x10^5,
but im looking to delete "x10^5" abbreviation.
Thanks in advance

採用された回答

Adam
Adam 2018 年 8 月 3 日
ax.YAxis.Exponent = 0;
should do this if you have a sufficiently recent version of Matlab.

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by