Matlab : 2 different cursor in a graph

4 次查看(过去 30 天)
Hello,
I would like to call 2 different cursor in a same graph, is it possible ? I have 2 graph in a figure (using sublopt). And in the first graph, I have 3 different courb like this :
subplot(2,1,1)
plot(x_new, y2, 'r')
hold on
[hAx,hLine1,hLine2] = plotyy(x_new,y1,x_new,y3);
For the moment, I call only one cursor for my figure (so for my 2 graphics, the cursor is the same) like this :
dcm_obj = datacursormode(fig);
set(dcm_obj,'UpdateFcn',@cursorcallback);
My second problem : when I want to remove the cursor on my coubr, I can't, it stays on the graph.
Thank you in advance,
Best regards

回答(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