Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to add an overall title to subplot

328 views
Skip to first unread message

Steven

unread,
Jun 4, 2010, 11:28:04 AM6/4/10
to
Hi,

I was wondering if it were possible to label an entire subplot plot. For example, if I have a plot with 4 subplots, I can put titles individually on each subplot, but how can I add a title (or text) that is on top of all the subplots?

Thanks!

-Steven

dpb

unread,
Jun 4, 2010, 12:56:02 PM6/4/10
to
...

Try the following...

>> h=subplot(3,2,1);
>> text(.75,1.25,'This is an overall title on subplot')
>> title('Subplot title')
>> % salt to suit; also doc gtext

--

someone

unread,
Jun 4, 2010, 2:23:22 PM6/4/10
to
dpb <no...@non.net> wrote in message <hubbbk$3oe$1...@news.eternal-september.org>...

% One other possibility is to
% download & try mtit from the MATLAB FEX at:
<<http://www.mathworks.com/matlabcentral/fileexchange/3218-mtit-a-pedestrian-major-title-creator>>

% You can't go wrong with an us program!

ImageAnalyst

unread,
Jun 4, 2010, 3:52:17 PM6/4/10
to

Steven

unread,
Jun 4, 2010, 6:07:19 PM6/4/10
to
Hi,

Thanks for all the suggestions. I went with the program 'mtit.m' by 'us'. It does the job simply enough. For anyone else who wants to use it, once you have the figure handle, h, containing the subplots, just do:

mtit(h,'This is the title');

which is really easy.

Peyman

unread,
Feb 3, 2014, 7:08:07 AM2/3/14
to
Here it is (the simplest way):
suptitle('I'm a super title');
(Just type: doc suptitle or search it in MATLAB help)

What it looks like:
http://i.imgur.com/gvSGs.png

Rajesh Thomas

unread,
Jul 13, 2017, 1:07:19 PM7/13/17
to
"Peyman" wrote in message <lco0r7$efp$1...@newscl01ah.mathworks.com>...
Helped a lot. Thanks. This seems to be the best answer in this post.
0 new messages