Home > m > plottools > ltpda_cscale.m

ltpda_cscale

PURPOSE ^

LTPDA_CSCALE Set the color range of the current figure

SYNOPSIS ^

function ltpda_cscale(y1,y2)

DESCRIPTION ^

 LTPDA_CSCALE Set the color range of the current figure
 
 
 usage:  cscale(x1,x2)
 
 
 M Hewitson  09-10-01
 
 $Id: ltpda_cscale.html,v 1.1 2007/06/08 14:15:10 hewitson Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function ltpda_cscale(y1,y2)
0002 
0003 
0004 % LTPDA_CSCALE Set the color range of the current figure
0005 %
0006 %
0007 % usage:  cscale(x1,x2)
0008 %
0009 %
0010 % M Hewitson  09-10-01
0011 %
0012 % $Id: ltpda_cscale.html,v 1.1 2007/06/08 14:15:10 hewitson Exp $
0013 %
0014 
0015 
0016 set(gca, 'CLim', [y1 y2]);
0017 
0018 h = get(gcf, 'Children');
0019 
0020 for j=1:length(h)
0021   if strcmp(get(h(j), 'Tag'), 'Colorbar')==1
0022     colorbar;
0023   end
0024 end
0025 
0026 % END

Generated on Fri 08-Jun-2007 16:09:11 by m2html © 2003