NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

root/gliderproc/trunk/MATLAB/plots/supertitle.m

Revision 495 (checked in by cbc, 12 years ago)

Initial import of Stark code.

Line 
1
2 function [ax,h]=supertitle(text)
3      %
4      %Centers a title over a group of vertical subplots.
5      %Returns a handle to the title and the handle to an axis.
6      % [ax,h]=supertitle(text)
7      %           returns handles to both the axis and the title.
8      % ax=supertitle(text)
9      %           returns a handle to the axis only.
10 %
11 % Calls: none
12
13
14      ax=axes('Units','Normal','Position',[.075 .075 .85 .85],'Visible','off');
15      set(get(ax,'Title'),'Visible','on')
16      title(text);
17      if (nargout < 2)
18        return
19      end
20      h=get(ax,'Title');
21
Note: See TracBrowser for help on using the browser.