how to put many small text boxes that display information about individual data points in the same figure?.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Aisha Mohamed
el 25 de Jun. de 2022
Respondida: dpb
el 25 de Jun. de 2022
I am trying to use data cursor in Matlab to identfy many point in the same figure, but the previous point disapper when I identify the next point .
My question is how can I identfy many point in the same figur and preserve them on the final figure?
I appriciate any help
0 comentarios
Respuesta aceptada
dpb
el 25 de Jun. de 2022
Programmatically or interactively???
NB: the doc for interactively includes the following:
Display Data Values Using Data Tips
... To display persistent (pinned) data tips, click one or more data points. ... To pin multiple data tips using the data tips button, hold down the Shift key. ...
Programmatically, you (R2019B and later) use the datatip object and create an array of them...
>> hL=plot(randn(10,1));
>> dt=datatip(hL,'DataIndex',3)
dt =
DataTip (X 3, Y 0.282659) with properties:
DataIndex: 3
Location: 'northeast'
Parent: [1×1 Line]
Show all properties
>> dt(2)=datatip(hL,'DataIndex',6);
>>
produces
0 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!