Add Percent ("%") Symbol to Axes Tick Labels
版本 1.0.0.0 (1.7 KB) 作者:
Kristofer Kusano
Add a percent ("%") symbol to the x, y, or both axes
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.
引用格式
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. 检索时间: .
MATLAB 版本兼容性
创建方式
R2012a
兼容任何版本
平台兼容性
Windows macOS Linux类别
- MATLAB > Graphics > Formatting and Annotation > Axes Appearance > Limits, Ticks, and Grids > Grid Lines, Tick Values, and Labels >
在 Help Center 和 MATLAB Answers 中查找有关 Grid Lines, Tick Values, and Labels 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |