Legend inside a plot
이전 댓글 표시
Hi all, I want to plot more than two graphs inside a figure, but I would like to label with a legend just two of them. It is possible without writing anything in the related position inside the command legend: legend('string1','','','string2')
but I get the line of the missing label in the legend panel!!
How can I take off the string and the symbol in the legend panel???
Thanks M
댓글 수: 2
Oleg Komarov
2012년 5월 27일
You can start by giving a complete example of the issue:
http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
Ocram
2012년 5월 27일
답변 (2개)
Walter Roberson
2012년 5월 27일
0 개 추천
Ocram
2012년 5월 27일
댓글 수: 3
Walter Roberson
2012년 5월 27일
axch = get(gca, 'Children');
Then in your set() code, replace h with axch(2)
Ocram
2012년 5월 28일
Oleg Komarov
2012년 5월 28일
What do you mean? It does work for me:
axch = get(gca, 'Children');
set(get(get(axch(2),'Annotation'),'LegendInformation'),'IconDisplayStyle','off');
카테고리
도움말 센터 및 File Exchange에서 Legend에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!