ticklabelunit(axes, vaxis, units, varargin)
This function is used add units to Axis TickLabel. The units is written in LaTeX format.
A typical application of this is having the dollar sign in front of horizontal axis of a bar plot or adding the degree symbol for angles or temperature values.
TickLabelUnit(axes, vaxis, unit, unitspositions)
Developed and tested on R2016b. The author does not guarantee it works in other versions of MATLAB.
Cite As
Chibuzo Nnonyelu (2024). ticklabelunit(axes, vaxis, units, varargin) (https://www.mathworks.com/matlabcentral/fileexchange/61692-ticklabelunit-axes-vaxis-units-varargin), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > Formatting and Annotation > Axes Appearance > Limits, Ticks, and Grids > Grid Lines, Tick Values, and Labels >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | Used lowercase letters throughout the function name, and added author's info in the documentation. |