Use Plot Browser While in Data Cursor Mode
4 views (last 30 days)
Show older comments
I have a figure with ~50 different sets of data plotted onto it (the below line of code is in a loop).
plot3(scope_data(1:end,1),-scope_data(1:end,2),-scope_data(1:end,3), '.','LineWidth',2);
legendInfo = [legendInfo regexprep(files(j).name,'.txt','')];
After all of the data sets are plotted, I go into data cursor mode in order to select specific points.
dcm_obj = datacursormode(fig);
set(dcm_obj,'DisplayStyle','datatip',...
'SnapToDataVertex','off','Enable','on')
Things are great, I can select points and get the values I need.. but there is one glaring issue. I am relying heavily on the native "Plot Browser" in order to differentiate between overlapping data sets. Normally, in the plot browser, I can select a data set by name based off of my legend and hide that set or delete it. How can I hide specific sets so that I can focus on a select few while still in data cursor mode? Is this possible?
Thanks for any feedback. I'm far from an expert so apologies if I don't understand solutions right away.
TLDR: This "hide" does not work while I'm in data cursor mode - I really would like for it to

0 Comments
Answers (0)
See Also
Categories
Find more on Creating, Deleting, and Querying Graphics Objects 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!