Axis labeling in engineering units
19 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Star Strider
on 28 Jan 2015
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.
0 Comments
See Also
Categories
Find more on Axis Labels in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!