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
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!
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.