Changeset 2559
- Timestamp:
- 10/29/09 07:53:03 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/plot/plot_section.m
r2526 r2559 38 38 39 39 %Compute section value 40 [elements,x,y,z,s,data_s]=SectionValues(md,data,getfieldvalue(options,'sectionvalue'),resolution); 40 if isquiver 41 [elements,x,y,z,s,data_s1]=SectionValues(md,data(:,1),getfieldvalue(options,'sectionvalue'),resolution); 42 [elements,x,y,z,s,data_s2]=SectionValues(md,data(:,2),getfieldvalue(options,'sectionvalue'),resolution); 43 else 44 [elements,x,y,z,s,data_s]=SectionValues(md,data,getfieldvalue(options,'sectionvalue'),resolution); 45 end 41 46 47 %2D 42 48 if is2d 43 49 … … 73 79 %plot section value 74 80 subplot(width,width,index1) 75 plot(s,data_s) 81 if isquiver 82 [AX,H1,H2]=plotyy(s,data_s1,s,data_s2,'plot'); 83 if exist(options,'Ylabel'), 84 Ylabel=getfieldvalue(options,'Ylabel'); 85 if iscell(Ylabel) & length(Ylabel)==2, 86 set(get(AX(1),'Ylabel'),'String',Ylabel{1}); 87 set(get(AX(2),'Ylabel'),'String',Ylabel{2}); 88 options=removefield(options,'Ylabel',0); 89 end 90 end 91 else 92 plot(s,data_s) 93 end 76 94 95 %3D 77 96 else 78 97 %plot section value
Note:
See TracChangeset
for help on using the changeset viewer.