How can I "Uncheck All" the lines and make them invisible using the Plot Browser?

26 views (last 30 days)
Is it possible to have an option called "UNCHECK ALL" in the Plot Browser. This will help in quickly making all the plotted lines invisible or visible.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This ability to uncheck all lines at once is not available in MATLAB.
As a workaround you could use the 'Visible' property of the line objects to programmatically turn them on or off. For example:
L=get(gca,'children');
for i=1:length(L)
set(L(i),'visible','off');
% Use the following to check mark all the lines : set(L(i),'visible','on');
end
The attached MATLAB file is a function, 'checklines', that performs the desired operation.

More Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Products


Release

R2009a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!