Legend for scatter plot has lines through markers
Ältere Kommentare anzeigen
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 Kommentar
Amy Robertson
am 12 Sep. 2018
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Legend finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!