Changeset 1879
- Timestamp:
- 08/25/09 12:23:12 (15 years ago)
- Location:
- issm/trunk/src/m/classes/public/plot
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/plot/plot_contour.m
r1740 r1879 1 function plot_contour(md,data ,options_structure);1 function plot_contour(md,datain,options_structure); 2 2 %PLOT_CONTOUR - plot contours of a given field 3 3 % … … 9 9 %process data and model 10 10 [x y z index is2d]=processmesh(md,options_structure); 11 [data isongrid isquiver]=processdata(md,data ,options_structure);11 [data isongrid isquiver]=processdata(md,datain,options_structure); 12 12 13 13 %check is2d … … 17 17 18 18 %first, process data: must be on grids 19 if isquiver 20 %take norm 21 data=sqrt(sum(datain.*datain,2)); 22 end 19 23 if ~isongrid 24 %take average 20 25 data=averaging(md,data,0); 21 26 end -
issm/trunk/src/m/classes/public/plot/plot_manager.m
r1805 r1879 120 120 %process data and model 121 121 [x y z elements is2d]=processmesh(md,options_structure); 122 [data isongrid isquiver]=processdata(md,data,options_structure);122 [data2 isongrid isquiver]=processdata(md,data,options_structure); 123 123 124 124 %standard plot: 125 125 subplot(width,width,i); 126 plot_unit(x,y,z,elements,data ,isongrid,is2d,isquiver,options_structure);126 plot_unit(x,y,z,elements,data2,isongrid,is2d,isquiver,options_structure); 127 127 128 128 %apply all options 129 if isnan(options_structure.shading) & isnan(options_structure.edgecolor) & size(data ,1)==md.numberofgrids,129 if isnan(options_structure.shading) & isnan(options_structure.edgecolor) & size(data2,1)==md.numberofgrids, 130 130 options_structure.shading='interp'; 131 131 end … … 133 133 options_structure.colorbar=2; 134 134 end 135 applyoptions(md,data,options_structure); 135 if isquiver & (iscell(options_structure.contourlevels) | ~isnan(options_structure.contourlevels)), 136 data2=data; 137 end 138 applyoptions(md,data2,options_structure);
Note:
See TracChangeset
for help on using the changeset viewer.