How can I get a legend that identifies ALL series shown on a group of plots?
Mostrar comentarios más antiguos
I have 9 subplots on one figure. 7 of those 9 subplots, including the last subplot, only have 3 data series associated with the plots. However, the other 2 have 4 data series. How do I get the legend to retain the information about ALL of the series shown in the figure? See attached image. Notice that plots 5 and 6 have observed data on them, but the others (including the last one) does not. I need to the legend to reflect the observed data.
1 comentario
Matthew
el 7 de Oct. de 2015
I believe the legend is associated with each individual axis rather than the figure, so there's probably no built in way to do this.
However, you could try making a hidden axis on the figure that contains a dummy series for each series in the figure. You could then create a legend for that hidden axis, and force the legend to be visible, even though its parent axis is hidden. . .
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!