Home > m > plottools > ltpda_allxscale.m

ltpda_allxscale

PURPOSE ^

LTPDA_ALLXSCALE Set all the x scales on the current figure.

SYNOPSIS ^

function ltpda_allxscale(scale)

DESCRIPTION ^

 LTPDA_ALLXSCALE Set all the x scales on the current figure.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 DESCRIPTION: LTPDA_ALLXSCALE Set all the x scales on the current figure.

 CALL:        allxscale(scale)     scale = 'lin' or 'log';

 VERSION:     $Id: ltpda_allxscale.m,v 1.5 2007/07/30 16:04:09 ingo Exp $

 HISTORY:     02-05-2004 M Hewitson
                 Creation.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function ltpda_allxscale(scale)
0002 % LTPDA_ALLXSCALE Set all the x scales on the current figure.
0003 %
0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0005 %
0006 % DESCRIPTION: LTPDA_ALLXSCALE Set all the x scales on the current figure.
0007 %
0008 % CALL:        allxscale(scale)     scale = 'lin' or 'log';
0009 %
0010 % VERSION:     $Id: ltpda_allxscale.m,v 1.5 2007/07/30 16:04:09 ingo Exp $
0011 %
0012 % HISTORY:     02-05-2004 M Hewitson
0013 %                 Creation.
0014 %
0015 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0016 
0017 c = get(gcf, 'children');
0018 
0019 if ~(strcmpi(scale, 'lin') || (strcmpi(scale, 'log')))
0020   error('### please use ''lin'' or ''log'' as an input.')
0021 end
0022 
0023 for k=1:length(c)
0024 
0025   t = get(c(k), 'Tag');
0026   if isempty(t)
0027     set(c(k), 'XScale', scale);
0028   end
0029 
0030 end
0031 
0032 %
0033 % END

Generated on Mon 03-Sep-2007 12:12:34 by m2html © 2003