Fixed point numbers on plot axes
1 回表示 (過去 30 日間)
古いコメントを表示
Doubtless this has been answered somewhere already, but I haven't found it.
Is there a simple way to display numbers in fixed point format (e.g. 12345.0, 12345.5, 12346.0, etc.) on a plot axis rather than the default floating point format (1.2345, 1.2346, 1.2346, etc. x 10^4)?
0 件のコメント
採用された回答
Titus Edelhofer
2011 年 6 月 3 日
Hi,
you could do the following:
ytick = get(gca, 'ytick');
yticklabel =strread(sprintf('%.1f;', ytick), '%s', 'delimiter', ';')
set(gca,'yticklabel', ytick)
Titus
2 件のコメント
Walter Roberson
2011 年 6 月 3 日
Note that any time you set the tick labels yourself, you will need extra work if you want to be able to zoom or pan.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Exploration についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!