How do I remove automatic selection/highlighting of the figure/axes when I use the "plotedit" function?
7 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2009-6-27
编辑: MathWorks Support Team
2024-1-3
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
采纳的回答
MathWorks Support Team
2023-11-15
编辑:MathWorks Support Team
2024-1-3
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Axis Labels 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!