Home > atmlab > graphs > axes_title.m

axes_title

PURPOSE ^

AXES_TITLE Legend title.

SYNOPSIS ^

function ht = axes_title(h,s,varargin)

DESCRIPTION ^

 AXES_TITLE   Legend title.

    Adds text at the top of any axes objects.

    The function can be used to set titles for legends and colorbars.

 FORMAT   ht = axes_title(h,s[,'Property1',PropertyValue1,...])
        
 OUT   ht   Handle to the title.
 IN    s    Title string.
 OPT        Arbitrary number of property / property value pairs.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

axes_title.m

SOURCE CODE ^

0001 % AXES_TITLE   Legend title.
0002 %
0003 %    Adds text at the top of any axes objects.
0004 %
0005 %    The function can be used to set titles for legends and colorbars.
0006 %
0007 % FORMAT   ht = axes_title(h,s[,'Property1',PropertyValue1,...])
0008 %
0009 % OUT   ht   Handle to the title.
0010 % IN    s    Title string.
0011 % OPT        Arbitrary number of property / property value pairs.
0012 
0013 % 2002-12-12   Created by Patrick Eriksson.
0014 
0015 
0016 function ht = axes_title(h,s,varargin)
0017 
0018 
0019 %=== Check input
0020 %
0021 rqre_nargin( 2, nargin );
0022 %
0023 if ~iseven( length(varargin) )
0024   error('Input arguments beside *s* must be property pairs.');
0025 end
0026 
0027 ht = get( h, 'title' );
0028 
0029 set( ht, 'string', s, varargin{:} );

Generated on Mon 15-Sep-2014 13:31:28 by m2html © 2005