I found this function https://www.mathworks.com/matlabcentral/fileexchange/1038-plot-crosshairs to plot crosshairs on the graph but if anyone has any other advice or any other ideas, please let me know
Is there a function that shows the value of the points on a plot as your mouse runs over them?
27 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Patrick Lydon
el 30 de Jun. de 2017
Comentada: Patrick Lydon
el 30 de Jun. de 2017
Hi,
I was wondering if anyone knew of a function, possibly in File Exchange, that would display the x and y coordinates of a plot as you hover your mouse over it. Or maybe there are crosshairs that follow along the line of a plot while displaying the values of the coordinates?
Thank you for the help
2 comentarios
Adam
el 30 de Jun. de 2017
I'm not aware of any builtin functionality, I've always programmed my own behaviour in that line. I tend to forget to look in File Exchange, but I usually prefer my own code anyway.
Respuesta aceptada
Fangjun Jiang
el 30 de Jun. de 2017
What about the build-in "Data Cursor"? Make a plot, go to "Tools", turn on "Data Cursor". Or, click the "Data Cursor" icon on the Figure Toolbar.
You will need to click the data point, instead of hover over it.
Más respuestas (0)
Ver también
Categorías
Más información sobre Line Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!