legend on a plot.
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi All, I Plot a 250x10 matrix. But I only want the legend for the 3rd 5th and 9th element.
How can I do this?
0 comentarios
Respuesta aceptada
Sean de Wolski
el 16 de Jul. de 2012
Use the handle explicitly:
h = plot(cumsum(rand(250,10)));
legend(h([3 5 9]),'third','fifth','ninth')
And for more info:
doc legend
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Legend en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!