Axis labeling in engineering units

5 ビュー (過去 30 日間)
Thomas Heckel
Thomas Heckel 2015 年 1 月 28 日
回答済み: Star Strider 2015 年 1 月 28 日
Hello everybody,
I want to get nice axis labeling within Matlab plots. Instead of e.g. "5 x 10^-6" I prefer "5µ". I'm just keen on Engineering units like n (10^-9), k (10^-3) etc. Is it possible to set the Labels both for x and y axis like this?
Thanks in advance

回答 (1 件)

Star Strider
Star Strider 2015 年 1 月 28 日
If you mean tick labels, you would have to do that manually, using the get and set functions, for example along with the appropriate 'Xtick' and 'XTickLabel', and other properties. You might also have to use the text function. If you simply want to use the axis labels (such as xlabel), multiply your 1E-6 data by 1E+6 and use xlabel and the appropriate TeX symbols (such as ‘\mu’ if you need them) to label the axis. See the documentation for Text Properties for details, particularly the 'Interpreter' option.

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by