Changeset 10751


Ignore:
Timestamp:
11/18/11 11:14:31 (13 years ago)
Author:
Eric.Larour
Message:

better section plot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/model/plot/plot_section.m

    r9734 r10751  
    2525%Get number of curves and generate random colors
    2626numcurves=size(data,2);
    27 colorm=getfieldvalue(options,'colormap','lines');
    28 color=eval([ colorm '(numcurves);'])
     27colorm=getfieldvalue(options,'colormap','line');
     28color=eval([ colorm '(numcurves);']);
    2929options=removefield(options,'colormap',0); %back to default colormap
    3030
     
    6868                end
    6969
    70                 %2D
    71                 if is2d
     70                %plot section value
     71                hold on;
     72                subplot(nlines,ncols,index1)
     73                %subplot(1,3,[2 3])
     74                plot(s,data_s,'color',color(i,:),'LineWidth',getfieldvalue(options,'linewidth',1))
     75                %3D
     76        else
     77                %plot section value
     78                %if user requested view2: 2d plot with curvilinear coordinate
     79                if (getfieldvalue(options,'view',3)==2 )
    7280
    7381                        %Show Section if requested by user
Note: See TracChangeset for help on using the changeset viewer.