Documentation of landshade


Global Index (short | long) | Local contents | Local Index (short | long)


Function Synopsis

h = landshade(elev);

Help text


  h = landshade(elev);

  elev = elevation of patches 


Cross-Reference Information

This function is called by

Listing of function landshade

function h = landshade(elev);

if nargin == 0; elev = -10000; end

h = displaym(worldlo('POpatch'));
set(h, 'Facecolor', 0.8*[1 1 1]);
set(h, 'Edgecolor', 0.8*[1 1 1]);

for i = 1:length(h);
  tem = get(h(i), 'ZData');
  tem = tem+elev;  %  Here just use any number that is larger than the 
                 %  maximum height of your contoured data         
  set(h(i), 'ZData', tem);
end