Changeset 11781
- Timestamp:
- 03/22/12 16:59:45 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/model/plot/plot_overlay.m
r11179 r11781 80 80 %hue (H) 81 81 h_data=(data_grid-data_min)/(data_max-data_min+eps); 82 if radaronly, 83 h_data(:)=0; 84 end 82 if radaronly, h_data(:)=0; end 85 83 %saturation (S) 86 84 s_data=max(min((0.1+h_data).^(1/transparency),1),0); … … 89 87 h_data=1-(data_grid-data_min)/(data_max-data_min+eps)*0.7; 90 88 %h_data=(data_grid-data_min)/(data_max-data_min)*2/3; 91 if radaronly, 92 h_data(:)=0; 93 end 89 if radaronly, h_data(:)=0; end 94 90 %saturation (S) 95 91 s_data=max(min((0.1+h_data).^(1/transparency),1),0); … … 113 109 v_data=radar/max(radar(:)); %use radar power as intensity 114 110 111 %Change background from black to white 112 %pos=find(v_data==0);v_data(pos)=1; 113 115 114 %Transform HSV to RGB 116 115 image_hsv=zeros(size(data_grid,1),size(data_grid,2),3); … … 130 129 hold on 131 130 A=elements(:,1); B=elements(:,2); C=elements(:,3); 132 patch('Faces',[A B C],'Vertices', [x y z],'FaceVertexCData',zeros(size(x)),'FaceColor','none','EdgeColor',getfieldvalue(options,'edgecolor')); 131 patch('Faces',[A B C],'Vertices', [x y z],'FaceVertexCData',zeros(size(x)),'FaceColor','none',... 132 'EdgeColor',getfieldvalue(options,'edgecolor'),'LineWidth',getfieldvalue(options,'linewidth',1)); 133 133 end 134 134
Note:
See TracChangeset
for help on using the changeset viewer.