Legend for scatter plot has lines through markers
Mostrar comentarios más antiguos
Hi, I am creating a scatter plot that uses different markers, which I access from a vector. When I add a legend to the plot, these markers show up correctly, but there is a line through them, which I would like to remove.
Here is a simple example. If you create the following plot, you will get what you would expect. A legend with just the marker symbol next to the label 'Case 1'. plot(1,1,'*'); legend('Case 1');
However, if you create a plot in the following manner (see below), the legend will now have a line through that marker. I'm wondering if there is a way to remove or turn-off that line? I need to do this latter approach since I am plotting multiple points in a scatter plot, and accessing different markers using a vector of symbols.
plot(1,1,'marker','*'); legend('Case 1');
Thanks!
1 comentario
Amy Robertson
el 12 de Sept. de 2018
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!