numeric TickLabels formater

Version 1.0.0.0 (3.52 KB) by Inno SPG
This function format numeric tickLabels of a plot to produce pretty label with easy to align plots

288 Downloads

Updated 28 Jun 2013

View License

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]);

Cite As

Inno SPG (2023). numeric TickLabels formater (https://www.mathworks.com/matlabcentral/fileexchange/42420-numeric-ticklabels-formater), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0