How can i make a common legend (title) for subplots?
2 ビュー (過去 30 日間)
古いコメントを表示
As you see in the img I have the same legend for the four subplot.
How can I position it only once outside the subplot? Maybe to the right of subplots or to the left or at centre (iterazione means iteration).
Then, I know that I can use a title for each subplot but how can I use just only title for the whole figure?
Thank you

1 件のコメント
Amin Mohammed
2019 年 1 月 27 日
I hope you provide a running code to test your case and try to help you.
回答 (2 件)
Star Strider
2014 年 6 月 4 日
Only call the legend in subplot(2,2,2), and not the others, and use -1 as the position indicator. That will put it outside (to the right) of the second subplot in the first row.
Image Analyst
2014 年 6 月 2 日
2 件のコメント
Image Analyst
2014 年 6 月 4 日
It's not a built-in function, so whatever version you have does not matter. It's something a user wrote and uploaded. You need to download it to some folder on your search path.
参考
カテゴリ
Help Center および File Exchange で Legend についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!