MATLAB: Is it possible to access figure callbacks for Pan/Zoom events

callbackfigureMATLABpanzoom

Callback routines should be added to figures that would allow users to track zoom/pan events.

Best Answer

The ability to access callbacks to pan/zoom events was added in MATLAB 7.3 (R2006b). This was made available with the "ActionPreCallback" and "ActionPostCallback" properties of the pan, zoom and rotate3d objects. More information is available in the documentation of PAN, ZOOM and ROTATE3D.
There are no workarounds for previous releases.