Changeset 3036


Ignore:
Timestamp:
02/16/10 11:00:01 (15 years ago)
Author:
Eric.Larour
Message:

Added partitionedges plot, as well as renamed position to figposition

Location:
issm/trunk/src/m/classes/public/plot
Files:
2 edited

Legend:

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

    r2996 r3036  
    234234
    235235%position of figure
    236 if exist(options,'position'),
     236if exist(options,'figposition'),
    237237       
    238         positionstring=getfieldvalue(options,'position');
    239         if strcmpi(positionstring,'larour'),
     238        figpositionstring=getfieldvalue(options,'figposition');
     239        if strcmpi(figpositionstring,'larour'),
    240240                set(gcf,'Position',[1604 4 1594 1177]);
    241241        end
    242         if strcmpi(positionstring,'larour2'),
     242        if strcmpi(figpositionstring,'larour2'),
    243243                set(gcf,'Position',[756    62   827   504]);
    244244        end
    245245
    246246end
    247 
    248247
    249248%axes position
     
    251250        set(gca,'Position',getfieldvalue(options,'axesPosition'));
    252251end
     252
     253%flag edges of a partition
     254if exist(options,'partitionedges')
     255        [grids middles]=flagedges(md.x,md.y,md.part,md.adjacency);
     256        hold on;
     257        plot(middles(:,1),middles(:,2),'k.');
     258end
  • issm/trunk/src/m/classes/public/plot/plotdoc.m

    r2996 r3036  
    105105disp('       ''iceshelf'': ''none'' if ice shelves are to not be plotted');
    106106disp('       ''icesheet'': ''none'' if ice sheets are to not be plotted');
     107disp('       ''partitionedges'': ''off'' by default. overlay plot of partition edges');
    107108disp('       ''log'': value of log');
    108109disp('       ''latlon'': ''on'' or {latstep lonstep [resolution [color]]} where latstep,longstep and resolution are in degrees, color is a [r g b] array');
Note: See TracChangeset for help on using the changeset viewer.