Changeset 5858


Ignore:
Timestamp:
09/17/10 08:07:50 (15 years ago)
Author:
Mathieu Morlighem
Message:

print overlay if vel = 0 and log

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/public/plot/plot_overlay.m

    r4330 r5858  
    2626        xlim=getfieldvalue(options,'xlim',[min(x) max(x)])/getfieldvalue(options,'unit',1);
    2727        ylim=getfieldvalue(options,'ylim',[min(y) max(y)])/getfieldvalue(options,'unit',1);
    28         md=radarpower(md,getfieldvalue(options,'hem','s'),xlim,ylim,getfieldvalue(options,'highres',0));
     28        md=radarpower(md,getfieldvalue(options,'hem',md.hemisphere),xlim,ylim,getfieldvalue(options,'highres',0));
    2929        t2=clock;fprintf('%s\n',[' done (' num2str(etime(t2,t1)) ' seconds)']);
    3030end%}}}
     
    7676
    7777%hue
    78 data_coba=linspace(min(data),max(data),256);%prepare colorbar (256 values between min and max)
    7978data_grid(find(data_grid<cutoff))=cutoff;   %cut all values below cutoff
    80 data_coba(find(data_grid<cutoff))=cutoff;   %cut all values below cutoff
    81 h_data=bytscl(data_grid)/(255+1);      %scale between 0 and 1 (log applied in processdata)
     79data_coba=linspace(max(min(data(:)),cutoff),max(max(data(:)),cutoff),256);%prepare colorbar (256 values between min and max)
     80h_data=bytscl(data_grid)/(255+1);           %scale between 0 and 1 (log applied in processdata)
    8281h_coba=bytscl(data_coba)/(255+1);           %scale between 0 and 1
    8382
     
    136135        set(colorbar_image_handle,'CData',colorbar_rgb);
    137136        set(colorbar_handle,'Position',getfieldvalue(options,'colorbarpos'));
    138         set(colorbar_handle,'FontSize',getfieldvalue(options,'fontsize',14));
     137        set(colorbar_handle,'FontSize',getfieldvalue(options,'colorbarfontsize',14));
    139138
    140139        %modify ticks.
Note: See TracChangeset for help on using the changeset viewer.