how to manually add a legend?
Mostrar comentarios más antiguos
I have generated a Matlab plot, but unfortunately I did not save it in Matlab. I saved only a screenshot from the figure. I need to add a legend.
How can I add it manually?
2 comentarios
I see three obvious options:
- Recreate the plot from the data and incorporate a legend as needed.
- Create a dummy plot using the same linestyle and color; add a legend to the dummy plot and save as an image. Crop the legend from the dummy plot and paste it into the old image using any convenient image editing software.
- Create a dummy plot, display the image in the same axes, then call legend so that it's stacked on top of the image. Wrestle with position properties in order to make it not look ridiculous.
Hana Ahmed
el 24 de Nov. de 2021
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Legend 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!


