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

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

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

Initial import of Stark code.

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