Changeset 2829


Ignore:
Timestamp:
01/14/10 08:24:25 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added ncols nlines capability to plot_overlay

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  
    183183
    184184%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);
     185if 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
    197199end
    198200
  • issm/trunk/src/m/classes/public/plot/plot_manager.m

    r2828 r2829  
    107107%Figure out if this is a semi-transparent plot.
    108108if exist(options,'overlay'),
    109         plot_overlay(md,data,options,subplotwidth,i);
     109        plot_overlay(md,data,options,nlines,ncols,i);
    110110        return;
    111111end
  • issm/trunk/src/m/classes/public/plot/plot_overlay.m

    r2726 r2829  
    1 function plot_overlay(md,data,options,width,i)
     1function plot_overlay(md,data,options,plotlines,plotcols,i)
    22%PLOT_OVERLAY - superimpose radar image to a given field
    33%
    44%   Usage:
    5 %      plot_overlay(md,options,width,i);
     5%      plot_overlay(md,options,plotlines,plotcols,i)
    66%
    77%   See also: PLOTMODEL
     
    9494
    9595%Select plot area
    96 subplot(width,width,i);
     96subplot(plotlines,plotcols,i);
    9797
    9898%Plot:
  • issm/trunk/src/m/classes/public/radarpower.m

    r2726 r2829  
    6363
    6464        %Name of image
    65         size(imread(geotiff_name,'TIFF'))
    6665        inputname='./temp.tif';
    6766        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.