numeric TickLabels formater
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 (2024). numeric TickLabels formater (https://www.mathworks.com/matlabcentral/fileexchange/42420-numeric-ticklabels-formater), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > Formatting and Annotation > Axes Appearance > Limits, Ticks, and Grids > Grid Lines, Tick Values, and Labels >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |