This function will format numeric TickLabel in a plot and limit their number to produce lovely labels and easy to align plots. To format the numbers, it switches between different options (integer, scientific and floating point representation) to define an appropriate format for each value.
If this function is called with all your plots, you will get figure of the same size that are easy to align in a publication without special resize for each one.
Example, the second plot of the screenshot was produce with prettyTickLabel(gca, 6, [1, 2, 2], [1, 2, 2]);
Inno SPG (2023). numeric TickLabels formater (https://www.mathworks.com/matlabcentral/fileexchange/42420-numeric-ticklabels-formater), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!