フィルターのクリア

Draw Legend in MATLAB

1 回表示 (過去 30 日間)
S. David
S. David 2014 年 7 月 28 日
回答済み: Sara 2014 年 7 月 28 日
Hello all,
I have in one figure 5 cases, and in each case I have 3 curves. I distinguish the curves of a single case by no line, solid line, and dotted line. While distinguishing between the different cases by different marks.
If I put all these details in the "legend" it will be too big inside the figure. Instead, I want to put in the legend the 3 cases that distinguish the curves of each case but without the mark, and then I can specify the curves by text arrow.
How can I draw a legend for curves do not appear in the figure?
Thanks

回答 (1 件)

Sara
Sara 2014 年 7 月 28 日
For the plot you DO NOT want to show in the legend, do:
h = plot(x,y,'-+); %your data
set(get(get(h,'Annotation'),'LegendInformation'),'IconDisplayStyle','off');

カテゴリ

Help Center および File ExchangeLegend についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by