this is plot matrix
I want to select line and to know which column is selected

 Respuesta aceptada

Walter Roberson
Walter Roberson el 10 de Oct. de 2023

0 votos

Not all varieties of plotting support the kinds of datatips listed there. For some kinds of plots, see instead datacursormode

3 comentarios

shamal
shamal el 10 de Oct. de 2023
i see this example in your link:
p = traccia(1:10);
dtt = p.DataTipTemplate
if p is a struct or class can i catch this reference?
I saw the example and it seems to me that it is only possible to obtain the value of the line at different points but not to capture the reference of the object
Walter Roberson
Walter Roberson el 10 de Oct. de 2023
p = plot(1:10);
dtt = p.DataTipTemplate
Here plot() is a MATLAB function call that is being asked to work on the data [1,2,3,4,5,6,7,8,9,10] . plot() of a vector returns the handle to a Chart Line object, https://www.mathworks.com/help/matlab/ref/matlab.graphics.chart.primitive.line-properties.html which is an object-oriented object so the variable p would be the reference to the graphics object.
shamal
shamal el 10 de Oct. de 2023
oky thank

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Graphics Performance en Centro de ayuda y File Exchange.

Preguntada:

el 9 de Oct. de 2023

Comentada:

el 10 de Oct. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by