Changeset 11781


Ignore:
Timestamp:
03/22/12 16:59:45 (13 years ago)
Author:
Mathieu Morlighem
Message:

Added possibility of changing radar background from black to white

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/model/plot/plot_overlay.m

    r11179 r11781  
    8080        %hue (H)
    8181        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
    8583        %saturation (S)
    8684        s_data=max(min((0.1+h_data).^(1/transparency),1),0);
     
    8987        h_data=1-(data_grid-data_min)/(data_max-data_min+eps)*0.7;
    9088        %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
    9490        %saturation (S)
    9591        s_data=max(min((0.1+h_data).^(1/transparency),1),0);
     
    113109v_data=radar/max(radar(:)); %use radar power as intensity
    114110
     111%Change background from black to white
     112%pos=find(v_data==0);v_data(pos)=1;
     113
    115114%Transform HSV to RGB
    116115image_hsv=zeros(size(data_grid,1),size(data_grid,2),3);
     
    130129        hold on
    131130        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));
    133133end
    134134
Note: See TracChangeset for help on using the changeset viewer.