Changeset 10987
- Timestamp:
- 11/30/11 09:09:04 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/model/plot/plot_section.m
r10751 r10987 25 25 %Get number of curves and generate random colors 26 26 numcurves=size(data,2); 27 colorm=getfieldvalue(options,'colormap','line ');27 colorm=getfieldvalue(options,'colormap','lines'); 28 28 color=eval([ colorm '(numcurves);']); 29 29 options=removefield(options,'colormap',0); %back to default colormap … … 68 68 end 69 69 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 ) 80 82 81 83 %Show Section if requested by user
Note:
See TracChangeset
for help on using the changeset viewer.