Add Percent ("%") Symbol to Axes Tick Labels
This function modifies the x, y, or both axes tick labels to include a percent ("%") symbol after each label. Although the procedure is trivial, this function will save the time of having to remember how to append the "%" symbol onto axes labels.
The function does not adjust the spacing or range of the current labels automatically. Therefore, you should adjust the axes range ('xtick' property) before using gcapercent.
Cite As
Kristofer Kusano (2024). Add Percent ("%") Symbol to Axes Tick Labels (https://www.mathworks.com/matlabcentral/fileexchange/38340-add-percent-symbol-to-axes-tick-labels), 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 |