Displaying information about the data set by clicking on its plot
Mostrar comentarios más antiguos
I have a plot of several graphs organized by color. EX:
colors = jet(12);
for i = 1:12
plot(x(:,i),y(:,i),'.','color',colors(i,:))
end
It works well and with the legend, I can display what each plot correlates to: data set 1, data set 2, etc.
However, it would be much better if I could get this information by CLICKING on the data. Such as when you click on a data point using "cursor" you can see the x and y values.
For example, when I click on one of the points, I would like it to say, "Data set 1: X = 12, Y = 3" or however it would display this information. I'm actually more interested in the data set information than the xy position.
Does anyone have any insight as to how to do this or if it's even possible?
Thank you!!!!
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Graphics Object Properties en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!