Changeset 2829
- Timestamp:
- 01/14/10 08:24:25 (15 years ago)
- Location:
- issm/trunk/src/m/classes/public
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/plot/applyoptions.m
r2827 r2829 183 183 184 184 %text (default value is empty, not NaN...) 185 textstring=getfieldvalue(options,'text'); 186 textweight=getfieldvalue(options,'textweight'); 187 textsize=getfieldvalue(options,'textsize'); 188 textcolor=getfieldvalue(options,'textcolor'); 189 textposition=getfieldvalue(options,'textposition'); 190 for i=1:length(getfieldvalue(options,'text')); 191 textstringi=textstring{i}; 192 textweighti=textweight{i}; 193 textsizei=textsize{i}; 194 textcolori=textcolor{i}; 195 textpositioni=textposition{i}; 196 text(textpositioni(1),textpositioni(2),textstringi,'FontSize',textsizei,'FontWeight',textweighti,'Color',textcolori); 185 if exist(options,'text'); 186 textstring=getfieldvalue(options,'text'); 187 textweight=getfieldvalue(options,'textweight'); 188 textsize=getfieldvalue(options,'textsize'); 189 textcolor=getfieldvalue(options,'textcolor'); 190 textposition=getfieldvalue(options,'textposition'); 191 for i=1:length(getfieldvalue(options,'text')); 192 textstringi=textstring{i}; 193 textweighti=textweight{i}; 194 textsizei=textsize{i}; 195 textcolori=textcolor{i}; 196 textpositioni=textposition{i}; 197 text(textpositioni(1),textpositioni(2),textstringi,'FontSize',textsizei,'FontWeight',textweighti,'Color',textcolori); 198 end 197 199 end 198 200 -
issm/trunk/src/m/classes/public/plot/plot_manager.m
r2828 r2829 107 107 %Figure out if this is a semi-transparent plot. 108 108 if exist(options,'overlay'), 109 plot_overlay(md,data,options, subplotwidth,i);109 plot_overlay(md,data,options,nlines,ncols,i); 110 110 return; 111 111 end -
issm/trunk/src/m/classes/public/plot/plot_overlay.m
r2726 r2829 1 function plot_overlay(md,data,options, width,i)1 function plot_overlay(md,data,options,plotlines,plotcols,i) 2 2 %PLOT_OVERLAY - superimpose radar image to a given field 3 3 % 4 4 % Usage: 5 % plot_overlay(md,options, width,i);5 % plot_overlay(md,options,plotlines,plotcols,i) 6 6 % 7 7 % See also: PLOTMODEL … … 94 94 95 95 %Select plot area 96 subplot( width,width,i);96 subplot(plotlines,plotcols,i); 97 97 98 98 %Plot: -
issm/trunk/src/m/classes/public/radarpower.m
r2726 r2829 63 63 64 64 %Name of image 65 size(imread(geotiff_name,'TIFF'))66 65 inputname='./temp.tif'; 67 66 system([path_gdal 'gdal_translate -quiet -projwin ' num2str(x0) ' ' num2str(y1) ' ' num2str(x1) ' ' num2str(y0) ' ' geotiff_name ' ' inputname ]);
Note:
See TracChangeset
for help on using the changeset viewer.