catch line using callback
Show older comments

mycallback = @(varargin) disp("yeah? what do ya want?");
plot(1:5,rand(1,5),buttondownfcn = mycallback)
but I want to capture the line that touches
i use this code to plot line
legend_lines(i)=plot(Ax_Eq,XDates,TE_strum(:,i),'Color',col(i,:));
after i want to using line capture changing color
legend_lines(line_callback).Color=[0 0 1]
It's possibile to do it?
Accepted Answer
More Answers (0)
Categories
Find more on Migrate GUIDE Apps 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!