LTPDA_ALLYSCALE Set all the Y scales on the current figure. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: LTPDA_ALLYSCALE Set all the Y scales on the current figure. CALL: allyscale(scale) scale = 'lin' or 'log'; VERSION: $Id: ltpda_allyscale.html,v 1.14 2008/03/31 10:27:43 hewitson Exp $ HISTORY: 02-05-2004 M Hewitson Creation. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0001 function ltpda_allyscale(scale) 0002 % LTPDA_ALLYSCALE Set all the Y scales on the current figure. 0003 % 0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0005 % 0006 % DESCRIPTION: LTPDA_ALLYSCALE Set all the Y scales on the current figure. 0007 % 0008 % CALL: allyscale(scale) scale = 'lin' or 'log'; 0009 % 0010 % VERSION: $Id: ltpda_allyscale.html,v 1.14 2008/03/31 10:27:43 hewitson 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), 'YScale', scale); 0028 end 0029 0030 end 0031 0032 % 0033 % END