From: Steven on
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
From: dpb on
Steven wrote:
> 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?
....

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

--

From: someone on
dpb <none(a)non.net> wrote in message <hubbbk$3oe$1(a)news.eternal-september.org>...
> Steven wrote:
> > 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?
> ...
>
> 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
>
> --

% 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!
From: ImageAnalyst on
Another option:
http://www.mathworks.com/matlabcentral/fileexchange/7772-suplabel
From: Steven on
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.