How to force y-axis values not to use scientific notation in axes?

516 次查看(过去 30 天)
My y-axis ranges from 0.001 to 0.003, it always shows up as 1-3 x 10^-3.
How do I force it show up as 0.001 to 0.003?

采纳的回答

Ameer Hamza
Ameer Hamza 2020-6-10
编辑:Ameer Hamza 2020-6-10
Set exponent property to 0
ax = gca; % axes handle
ax.YAxis.Exponent = 0;
You can add these lines after creating the plot.
  1 个评论
Kevin Park
Kevin Park 2021-11-19
I tried this on a right-axis plot and I get the following error with this solution:
>> ax.YAxis.Exponent = 0;
Assigning to 2 elements using a simple assignment statement is not supported. Consider using comma-separated list assignment.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Objects 的更多信息

标签

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by