Combining legend data
Ältere Kommentare anzeigen
What I would like to do is combine two legend items together. Suppose I have some like the following:
plot(4.5+rand(1,50),'o')
hold on
plot(5*ones(1,50))
legend('data','fit')
But instead of having 2 entries in the legend (1 circles, 1 line) I have only 1 entry (line with circle in the middle).
Does anybody know how to do this?
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 2 Feb. 2011
0 Stimmen
When I try in 2008b Linux 64, I get two legend entries, as I expect.
Are you finding that you only get one legend entry, or are you trying to get only one legend entry? If you are trying to get only one legend entry, what are you hoping that it would look like considering you have two labels and two markers?
1 Kommentar
Steven White
am 17 Aug. 2011
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!