Changeset 10987


Ignore:
Timestamp:
11/30/11 09:09:04 (13 years ago)
Author:
seroussi
Message:

revert plot_section to previous version as it does not work in 2d

File:
1 edited

Legend:

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

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