Specify formatted axis tick label. Modified version of the function ticks_format created by D. Gilbert.
Anil (2021). tlprintf (https://www.mathworks.com/matlabcentral/fileexchange/1633-tlprintf), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
Agree with Peter. It would be great if it there was a way to re-do the labels when the figure wasa resized. Still a great module.
Addendum to my previous user review posting: Since this application necessarily leaves the XTickLabelMode, etc in 'manual' mode, the tick labels do not behave sensibly if the graph is subsequently resized. For example, if tlprintf.m created X axis labels 0 1 2 3 and the graph is then enlarged so it now has 6 tick marks, the ticks will be labelled 0 1 2 3 0 1 2, which is not useful. Therefore I've downgraded my rating to 3.
Why doesn't Matlab have a tick label format property?
Perfectly solves a formatting issue for axis labels: How to specify fixed point (integer) tick labels, instead of the default exponential labels for large integers. Thanks!