Changeset 3118


Ignore:
Timestamp:
02/24/10 13:19:51 (15 years ago)
Author:
Eric.Larour
Message:

Bug fix for plot_none

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

Legend:

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

    r3062 r3118  
    274274        colorbar('off');
    275275end
     276
     277
    276278%flag edges of a partition
    277279if exist(options,'partitionedges')
    278280        [xsegments ysegments]=flagedges(md.elements,md.x,md.y,md.part);
    279         color=getfieldvalue(options,'partitionedgescolor','k-');
     281        xsegments=xsegments*getfieldvalue(options,'unit',1);
     282        ysegments=ysegments*getfieldvalue(options,'unit',1);
     283        color=getfieldvalue(options,'partitionedgescolor','r-');
     284        linewidth=getfieldvalue(options,'linewidth',1);
    280285        hold on;
    281286        for i=1:length(xsegments),
    282                 plot(xsegments(i,:),ysegments(i,:),color);
    283         end
    284 end
     287                plot(xsegments(i,:),ysegments(i,:),color,'LineWidth',linewidth);
     288        end
     289end
  • issm/trunk/src/m/classes/public/plot/plot_none.m

    r3071 r3118  
    77%   See also: PLOTMODEL
    88
     9options=addfielddefault(options,'colorbar','none');
     10options=addfielddefault(options,'axis','equal');
     11
    912%apply options
    1013applyoptions(md,[],options);
Note: See TracChangeset for help on using the changeset viewer.