Be the first to rate this file! 11 Downloads (last 30 days) File Size: 1.68 KB File ID: #39907
image thumbnail

Axis context menu for toggling X/Y scale and limits

by

 

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

| Watch this File

File Information
Description

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

Acknowledgements

Axis Context Menu inspired this file.

Required Products MATLAB
MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
20 May 2014 Jonathan

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!

Contact us