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