How can i make a common legend (title) for subplots?

8 次查看(过去 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

回答(2 个)

Star Strider
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
Image Analyst 2014-6-2
  2 个评论
Fabio
Fabio 2014-6-4
My matlab version is 7.10 (R2010a), it hasn't suplabel, have you got other solution?
Thank you
Image Analyst
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 CenterFile Exchange 中查找有关 Legend 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by