필터 지우기
필터 지우기

Figure legend is cut off

조회 수: 20 (최근 30일)
Pedro
Pedro 2014년 6월 7일
댓글: Cedric 2014년 6월 7일
Hi,
I'm trying to plot 81 variables into one plot in MATLAB and I need a legend with 81 respective labels. I've managed to separate the legend into several lines such that it would fit the figure better but still, being this large, the legend apears cut off:
is there any way to solve this problem, so that all the legend appears in the figure?
Thank you in advance
  댓글 수: 1
Cedric
Cedric 2014년 6월 7일
Did you try using the 'Location' parameter of LEGEND (e.g. NorthEastOutside)? If nothing works using all possible parameters ( doc legend, and check them out), you can build a legend box programmatically. I can help you with that if needed, but check out built in options first.

댓글을 달려면 로그인하십시오.

답변 (1개)

Star Strider
Star Strider 2014년 6월 7일
It looks like an ENG. I doubt there is an appropriate way to display those waveforms on a simple line plot.
Consider ribbon (a type of surface plot) instead. It is still going to be difficult to see and label all 81, but with skillful use of handle graphics (and fonts and font sizes), you can get a good representation of your data.

카테고리

Help CenterFile Exchange에서 Legend에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by