Will replace axes tick labels with formatted text objects that can include both Tex and LaTex interpreted strings. Primary example is to add degree symbols to labels. Inputs can be a cell array of strings or a single string to be appended to the end of each of the current labels. Header documentation includes several examples. Labels can also be rotated.
08/19/2007: Created by Alex Hayes
04/20/2009: Minor Update by Patrick Toche
Introduces a distinction between offsets for the horizontal axis offsetx and for the vertical axis offsety. It took 2 minutes to modify the original file, so credit must go to Alexander Hayes. Any errors are mine, of course.
05/01/2014: Minor Update by Maha Haji
Introduces offset in the case of log scales for x or y axis. Previously resulted in missing labels when using semilogx, semilogy, and loglog. It took little time to modify the original file so all credit goes to Alexander Hayes. Any errors are mine, of course.
引用
Maha (2025). Format Tick Labels (Extended v2) (https://www.mathworks.com/matlabcentral/fileexchange/46431-format-tick-labels-extended-v2), MATLAB Central File Exchange. に取得済み.
MATLAB リリースの互換性
プラットフォームの互換性
Windows macOS Linuxカテゴリ
- MATLAB > Graphics > Labels and Styling > Axes Appearance > Limits, Ticks, and Grids > Grid Lines, Tick Values, and Labels >
タグ
謝辞
ヒントを得たファイル: Format Tick Labels, Format Tick Labels (Extended)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!バージョン | 公開済み | リリース ノート | |
---|---|---|---|
1.0.0.0 |