Version (2.61 KB) by Greg Aloe
Allows zoom to honor a figure whose AXES tick labels have been manually set.


Updated 1 Sep 2016

View License

Note: As of MATLAB® R2006b, the ZOOM, PAN, and ROTATE3D functions can return an object with properties that provide the functionality (and more) that this submission provides. See the documentation for details. I recommend using those supported MATLAB® features before considering this submission.
By default, when you set ticklabels manually and zoom around the AXES, the ticklabels do not update automatically. They must be subsequently reset as desired. But with ZOOMFIXTICKS, this updating occurs automatically and seemlessly. The user of the function can create their own FIXTICKS function, which is called by ZOOMFIXTICKS. This is described in more detail in the help of the file in this submission.

This tool is especially useful when you want to override MATLAB's default format of the ticklabels.

Cite As

Greg Aloe (2023). zoomfixticks (https://www.mathworks.com/matlabcentral/fileexchange/2090-zoomfixticks), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12.1
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: correct tick label

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Updated license

Update description to point to MATLAB® features that should be considered first.

Undocumented HG tags changed in MATLAB R14.