How do I remove automatic selection/highlighting of the figure/axes when I use the "plotedit" function?
5 views (last 30 days)
Show older comments
MathWorks Support Team
on 27 Jun 2009
Edited: MathWorks Support Team
on 3 Jan 2024
Using the "plotedit" function will highlight the whole figure or axes. How do I do remove this automatic selection/highlighting?
Here are steps to reproduce the issue:
figure
surf(peaks)
plotedit
Accepted Answer
MathWorks Support Team
on 15 Nov 2023
Edited: MathWorks Support Team
on 3 Jan 2024
You can set the "SelectionHighlight" property of the figure or axes to "off" in order to hide the selection highlighting. Here is an example:
figure
surf(peaks)
set(gcf,'SelectionHighlight','off')
set(gca,'SelectionHighlight','off')
plotedit
If you would like, you can further switch the default selection highlighting properties to "off" for figures and/or axes:
set(0,'DefaultFigureSelectionHighlight','off')
set(0,'DefaultAxesSelectionHighlight','off')
To have this persist between MATLAB sessions, you can place this in a "startup.m" file.
For more information about using a "startup.m" file, please run the following command on MATLAB R2018a:
web(fullfile(docroot, 'matlab/matlab_env/startup-options.html'))
Please follow the below link to search for the required information regarding the current release:
0 Comments
More Answers (0)
See Also
Categories
Find more on Axis Labels in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!