How can I get a legend that identifies ALL series shown on a group of plots?
이전 댓글 표시
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
Matthew
2015년 10월 7일
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. . .
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Legend에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!