Changeset 5858
- Timestamp:
- 09/17/10 08:07:50 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/plot/plot_overlay.m
r4330 r5858 26 26 xlim=getfieldvalue(options,'xlim',[min(x) max(x)])/getfieldvalue(options,'unit',1); 27 27 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)); 29 29 t2=clock;fprintf('%s\n',[' done (' num2str(etime(t2,t1)) ' seconds)']); 30 30 end%}}} … … 76 76 77 77 %hue 78 data_coba=linspace(min(data),max(data),256);%prepare colorbar (256 values between min and max)79 78 data_grid(find(data_grid<cutoff))=cutoff; %cut all values below cutoff 80 data_coba (find(data_grid<cutoff))=cutoff; %cut all values below cutoff81 h_data=bytscl(data_grid)/(255+1); %scale between 0 and 1 (log applied in processdata)79 data_coba=linspace(max(min(data(:)),cutoff),max(max(data(:)),cutoff),256);%prepare colorbar (256 values between min and max) 80 h_data=bytscl(data_grid)/(255+1); %scale between 0 and 1 (log applied in processdata) 82 81 h_coba=bytscl(data_coba)/(255+1); %scale between 0 and 1 83 82 … … 136 135 set(colorbar_image_handle,'CData',colorbar_rgb); 137 136 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)); 139 138 140 139 %modify ticks.
Note:
See TracChangeset
for help on using the changeset viewer.