Axis context menu for toggling X/Y scale and limits

Adds a special context menu to the axis that helps toggling the scale and limits of the axes.

You are now following this Submission

Adds scale (linear / log) and axis limit (auto / manual) toggling as a special contextmenu of the axis (not the regular uicontextmenu of the axes).

toggleAxisContextMenu()
toggleAxisContextMenu(hAxes)

example:
toggleAxisContextMenu(gca);

Important: This function relies on the uiaxiscontextmenu by Lior Cohen.
It can be downloaded from http://bit.ly/WLTS9E
Please make sure it is in the Matlab path or in your working directory

Cite As

Lior Cohen (2026). Axis context menu for toggling X/Y scale and limits (https://in.mathworks.com/matlabcentral/fileexchange/39907-axis-context-menu-for-toggling-x-y-scale-and-limits), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: Axis Context Menu

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0