How to (cleverly) index points in a plot?

20 visualizaciones (últimos 30 días)
Mohit Kumar
Mohit Kumar el 14 de Mayo de 2020
Comentada: Mohit Kumar el 14 de Mayo de 2020
I have a for loop which plots a point each iteration.
In total there are about 4000+ points to be plotted. From the figure, I want to select a point and see which iteration gave me that point.
The only way I thought of doing this is by printing the index next to the points on the plot which creates a very messy picture.
Thanks,
Mohit.

Respuesta aceptada

Walter Roberson
Walter Roberson el 14 de Mayo de 2020
  1 comentario
Mohit Kumar
Mohit Kumar el 14 de Mayo de 2020
Awesome, thanks!
Can the same thing also be done with plot? (As I would prefer a dash-dot plot)
If not, I'll obviously make two plots - one with scatter and one with plot.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Two y-axis en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by