Adds scale (linear / log) and axis limit (auto / manual) toggling as a special contextmenu of the axis (not the regular uicontextmenu of the axes).
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
Lior Cohen (2021). Axis context menu for toggling X/Y scale and limits (https://www.mathworks.com/matlabcentral/fileexchange/39907-axis-context-menu-for-toggling-x-y-scale-and-limits), MATLAB Central File Exchange. Retrieved .
I have been using this extremely useful code for setting axis properties via a context menu. However, I recently migrated from Windows to a Mac and for some reason, the X/Y axis context menus just doesn’t work anymore. I can set a context menu for an axes or line object manually and it works fine, but the YUIContextMenu and XUIContextMenu set by this code don’t seem to work. If you have any ideas for a solution, I would be most appreciative!
Inspired by: Axis Context Menu
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!