MATLAB Answers


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

Asked by Fabio
on 2 Jun 2014
Latest activity Commented on by zohar
on 13 Aug 2014

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


Log in to comment.

2 Answers

Answer by Star Strider
on 4 Jun 2014

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.

  1 Comment

Log in to comment.

Answer by Image Analyst
on 2 Jun 2014


My matlab version is 7.10 (R2010a), it hasn't suplabel, have you got other solution?

Thank you

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.

Log in to comment.

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!