Use Plot Browser While in Data Cursor Mode

조회 수: 4 (최근 30일)
Joshua Godfrey
Joshua Godfrey 2017년 1월 18일
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개)

카테고리

Help CenterFile Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by