How can I display axis values as thousands, millions and billions instead of 10^3, 10^6 and 10^9?
30 次查看(过去 30 天)
显示 更早的评论
LS,
I would like to make the y-axis of my plot to show 16.000.000 as 16 million instead of 1.6 x 10 ^ 7. Does someone know a solution?
Best regards,
Frits Hermans
0 个评论
采纳的回答
更多回答(1 个)
Daniel Shub
2011-5-17
The ytick parameter controls where the tick marks are and the yticklabel controls the label. I am assuming you are using either semilogy or loglog to plot ...
y = logspace(1, 4, 100);
semilogy(y)
set(gca, 'ytick', [20, 200, 2000])
set(gca, 'yticklabel', {'20'; '2 hundred'; '2 thousand'})
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Axis Labels 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!