Changeset 8472
- Timestamp:
- 06/01/11 22:53:48 (14 years ago)
- Location:
- issm/trunk/src/m/model/plot
- Files:
-
- 39 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/model/plot/plot_basaldrag.m
r8454 r8472 39 39 40 40 %process data and model 41 [x y z elements is2d ]=processmesh(md,[],options);41 [x y z elements is2d isplanet]=processmesh(md,[],options); 42 42 [basal_drag datatype]=processdata(md,drag,options); 43 43 44 44 %plot basaldrag 45 45 subplot(width,width,i); 46 plot_unit(x,y,z,elements,basal_drag,is2d, datatype,options);46 plot_unit(x,y,z,elements,basal_drag,is2d,isplanet,datatype,options); 47 47 48 48 %apply options -
issm/trunk/src/m/model/plot/plot_boundaries.m
r4330 r8472 13 13 options=removefield(options,'layer',1); 14 14 end 15 [x y z elements is2d ]=processmesh(md,[],options);15 [x y z elements is2d isplanet]=processmesh(md,[],options); 16 16 17 17 for i=1:size(md.segments,1), -
issm/trunk/src/m/model/plot/plot_contour.m
r8298 r8472 8 8 9 9 %process data and model 10 [x y z index is2d ]=processmesh(md,[],options);10 [x y z index is2d isplanet]=processmesh(md,[],options); 11 11 [data datatype]=processdata(md,datain,options); 12 12 -
issm/trunk/src/m/model/plot/plot_drivingstress.m
r4330 r8472 11 11 12 12 %process data and model 13 [x y z elements is2d ]=processmesh(md,[],options);13 [x y z elements is2d isplanet]=processmesh(md,[],options); 14 14 [dstress datatype]=processdata(md,s,options); 15 15 dstress=dstress/1000; … … 17 17 %plot mesh quivervel 18 18 subplot(width,width,i); 19 plot_unit(x,y,z,elements,dstress,is2d, datatype,options)19 plot_unit(x,y,z,elements,dstress,is2d,isplanet,datatype,options) 20 20 21 21 %apply options -
issm/trunk/src/m/model/plot/plot_edges.m
r5616 r8472 11 11 12 12 %process mesh and data 13 [x y z elements is2d ]=processmesh(md,[],options);13 [x y z elements is2d isplanet]=processmesh(md,[],options); 14 14 edges=md.edges; 15 15 if isnan(edges) -
issm/trunk/src/m/model/plot/plot_elementnumbering.m
r5617 r8472 10 10 11 11 %process data and model 12 [x y z elements is2d ]=processmesh(md,[],options);12 [x y z elements is2d isplanet]=processmesh(md,[],options); 13 13 [elementnumbers datatype]=processdata(md,[1:md.numberofelements]',options); 14 14 -
issm/trunk/src/m/model/plot/plot_elementstype.m
r8115 r8472 8 8 9 9 %process data and model 10 [x y z elements is2d ]=processmesh(md,[],options);10 [x y z elements is2d isplanet]=processmesh(md,[],options); 11 11 [data datatype]=processdata(md,md.elements_type,options); 12 12 -
issm/trunk/src/m/model/plot/plot_gridded.m
r8001 r8472 8 8 9 9 %process mesh and data 10 [x y z elements is2d ]=processmesh(md,[],options);10 [x y z elements is2d isplanet]=processmesh(md,[],options); 11 11 [data datatype]=processdata(md,data,options); 12 12 -
issm/trunk/src/m/model/plot/plot_highlightelements.m
r5617 r8472 11 11 12 12 %process data and model 13 [x y z elements is2d ]=processmesh(md,[],options);13 [x y z elements is2d isplanet]=processmesh(md,[],options); 14 14 [elementnumbers datatype]=processdata(md,[1:md.numberofelements]',options); 15 15 -
issm/trunk/src/m/model/plot/plot_highlightnodes.m
r8299 r8472 8 8 9 9 %process data and model 10 [x y z elements is2d ]=processmesh(md,[],options);10 [x y z elements is2d isplanet]=processmesh(md,[],options); 11 11 [nodenumbers datatype]=processdata(md,[1:md.numberofnodes]',options); 12 12 -
issm/trunk/src/m/model/plot/plot_importancefactors.m
r8298 r8472 64 64 65 65 %process data and model 66 [x y z elements is2d ]=processmesh(md,[],options);66 [x y z elements is2d isplanet]=processmesh(md,[],options); 67 67 68 68 %edgecolor -
issm/trunk/src/m/model/plot/plot_manager.m
r8298 r8472 166 166 167 167 %process data and model 168 [x y z elements is2d ]=processmesh(md,data,options);168 [x y z elements is2d isplanet]=processmesh(md,data,options); 169 169 [data2 datatype]=processdata(md,data,options); 170 170 … … 178 178 179 179 %plot unit 180 plot_unit(x,y,z,elements,data2,is2d, datatype,options);180 plot_unit(x,y,z,elements,data2,is2d,isplanet,datatype,options); 181 181 182 182 -
issm/trunk/src/m/model/plot/plot_mesh.m
r8114 r8472 8 8 9 9 %process data and model 10 [x y z elements is2d ]=processmesh(md,[],options);10 [x y z elements is2d isplanet]=processmesh(md,[],options); 11 11 12 12 %plot mesh … … 22 22 patch( 'Faces', [A B C], 'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','none','EdgeColor',edgecolor,'linewidth',linewidth); 23 23 else 24 A=elements(:,1); B=elements(:,2); C=elements(:,3); D=elements(:,4); E=elements(:,5); F=elements(:,6); 25 patch( 'Faces', [A B C], 'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','none','EdgeColor',edgecolor,'linewidth',linewidth); 26 patch( 'Faces', [D E F], 'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','none','EdgeColor',edgecolor,'linewidth',linewidth); 27 patch( 'Faces', [A B E D],'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','none','EdgeColor',edgecolor,'linewidth',linewidth); 28 patch( 'Faces', [B E F C],'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','none','EdgeColor',edgecolor,'linewidth',linewidth); 29 patch( 'Faces', [C A D F],'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','none','EdgeColor',edgecolor,'linewidth',linewidth); 24 if ~md.planet, 25 A=elements(:,1); B=elements(:,2); C=elements(:,3); D=elements(:,4); E=elements(:,5); F=elements(:,6); 26 patch( 'Faces', [A B C], 'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','none','EdgeColor',edgecolor,'linewidth',linewidth); 27 patch( 'Faces', [D E F], 'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','none','EdgeColor',edgecolor,'linewidth',linewidth); 28 patch( 'Faces', [A B E D],'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','none','EdgeColor',edgecolor,'linewidth',linewidth); 29 patch( 'Faces', [B E F C],'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','none','EdgeColor',edgecolor,'linewidth',linewidth); 30 patch( 'Faces', [C A D F],'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','none','EdgeColor',edgecolor,'linewidth',linewidth); 31 else 32 A=elements(:,1); B=elements(:,2); C=elements(:,3); D=elements(:,4); 33 patch( 'Faces', [A B C D], 'Vertices', [x y z],'FaceVertexCData', [1 1 1],'FaceColor','none','EdgeColor',edgecolor,'linewidth',linewidth); 34 35 end 30 36 end 31 37 -
issm/trunk/src/m/model/plot/plot_nodenumbering.m
r8299 r8472 8 8 9 9 %process data and model 10 [x y z elements is2d ]=processmesh(md,[],options);10 [x y z elements is2d isplanet]=processmesh(md,[],options); 11 11 [nodenumbers datatype]=processdata(md,[1:md.numberofnodes]',options); 12 12 -
issm/trunk/src/m/model/plot/plot_overlay.m
r8354 r8472 8 8 9 9 %process mesh and data 10 [x y z elements is2d ]=processmesh(md,[],options);10 [x y z elements is2d isplanet]=processmesh(md,[],options); 11 11 if strcmpi(data,'none'), 12 12 radaronly=1; -
issm/trunk/src/m/model/plot/plot_parthist.m
r7986 r8472 8 8 9 9 %process data and model 10 [x y z elements is2d ]=processmesh(md,[],options);10 [x y z elements is2d isplanet]=processmesh(md,[],options); 11 11 12 12 %plot mesh -
issm/trunk/src/m/model/plot/plot_parthistn.m
r8014 r8472 8 8 9 9 %process data and model 10 [x y z elements is2d ]=processmesh(md,[],options);10 [x y z elements is2d isplanet]=processmesh(md,[],options); 11 11 12 12 %plot mesh -
issm/trunk/src/m/model/plot/plot_parthistw.m
r8014 r8472 8 8 9 9 %process data and model 10 [x y z elements is2d ]=processmesh(md,[],options);10 [x y z elements is2d isplanet]=processmesh(md,[],options); 11 11 12 12 %plot mesh -
issm/trunk/src/m/model/plot/plot_penalties.m
r8298 r8472 8 8 9 9 %process data and model 10 [x y z elements is2d ]=processmesh(md,[],options);10 [x y z elements is2d isplanet]=processmesh(md,[],options); 11 11 12 12 %plot mesh penalties -
issm/trunk/src/m/model/plot/plot_pressureload.m
r7545 r8472 11 11 12 12 %process mesh and data 13 [x y z elements is2d ]=processmesh(md,[],options);13 [x y z elements is2d isplanet]=processmesh(md,[],options); 14 14 pressureload=md.pressureload; 15 15 -
issm/trunk/src/m/model/plot/plot_qmu_mass_flux_segments.m
r4994 r8472 9 9 10 10 %process mesh and data 11 [x y z elements is2d ]=processmesh(md,[],options);11 [x y z elements is2d isplanet]=processmesh(md,[],options); 12 12 13 13 allsegments=md.qmu_mass_flux_segments; -
issm/trunk/src/m/model/plot/plot_qmumean.m
r8298 r8472 14 14 15 15 %process data and model 16 [x y z elements is2d ]=processmesh(md,[],options);16 [x y z elements is2d isplanet]=processmesh(md,[],options); 17 17 18 18 %find response function -
issm/trunk/src/m/model/plot/plot_qmustddev.m
r8298 r8472 14 14 15 15 %process data and model 16 [x y z elements is2d ]=processmesh(md,[],options);16 [x y z elements is2d isplanet]=processmesh(md,[],options); 17 17 18 18 %find response function -
issm/trunk/src/m/model/plot/plot_riftfraction.m
r8298 r8472 13 13 14 14 %process data and model 15 [x y z elements is2d ]=processmesh(md,[],options);15 [x y z elements is2d isplanet]=processmesh(md,[],options); 16 16 17 17 subplot(nlines,ncols,index); -
issm/trunk/src/m/model/plot/plot_riftnumbering.m
r8298 r8472 8 8 9 9 %process data and model 10 [x y z elements is2d ]=processmesh(md,[],options);10 [x y z elements is2d isplanet]=processmesh(md,[],options); 11 11 fontsize=getfieldvalue(options,'FontSize',8); 12 12 -
issm/trunk/src/m/model/plot/plot_riftpenetration.m
r7082 r8472 8 8 9 9 %process data and model 10 [x y z elements is2d ]=processmesh(md,[],options);10 [x y z elements is2d isplanet]=processmesh(md,[],options); 11 11 12 12 subplot(nlines,ncols,index); -
issm/trunk/src/m/model/plot/plot_riftrelvel.m
r8298 r8472 30 30 31 31 %process data and model 32 [x y z elements is2d ]=processmesh(md,[],options);32 [x y z elements is2d isplanet]=processmesh(md,[],options); 33 33 [vel datatype]=processdata(md,[u v],options); 34 34 [quivers,palette]=quiver_process(x,y,vel(:,1),vel(:,2),options); -
issm/trunk/src/m/model/plot/plot_rifts.m
r4330 r8472 8 8 9 9 %process data and model 10 [x y z elements is2d ]=processmesh(md,[],options);10 [x y z elements is2d isplanet]=processmesh(md,[],options); 11 11 12 12 %plot mesh -
issm/trunk/src/m/model/plot/plot_riftvel.m
r8298 r8472 26 26 27 27 %process data and model 28 [x y z elements is2d ]=processmesh(md,[],options);28 [x y z elements is2d isplanet]=processmesh(md,[],options); 29 29 [vel datatype]=processdata(md,[u v],options); 30 30 [quivers,palette]=quiver_process(x,y,vel(:,1),vel(:,2),options); -
issm/trunk/src/m/model/plot/plot_section.m
r7292 r8472 21 21 22 22 %process model 23 [x_m y_m z_m elements_m is2d ]=processmesh(md,[],options);23 [x_m y_m z_m elements_m is2d isplanet]=processmesh(md,[],options); 24 24 25 25 %Get number of curves and generate random colors … … 80 80 %plot section only with labels 81 81 subplot(nlines,ncols,index2) 82 plot_unit(x_m,y_m,z_m,elements_m,data(:,i),is2d, datatype,options)82 plot_unit(x_m,y_m,z_m,elements_m,data(:,i),is2d,isplanet,datatype,options) 83 83 hold on 84 84 text(x(1),y(1),'1','backgroundcolor',[0.8 0.9 0.8]) -
issm/trunk/src/m/model/plot/plot_segments.m
r5818 r8472 11 11 12 12 %process mesh and data 13 [x y z elements is2d ]=processmesh(md,[],options);13 [x y z elements is2d isplanet]=processmesh(md,[],options); 14 14 segments=md.segments; 15 15 -
issm/trunk/src/m/model/plot/plot_streamlines.m
r4330 r8472 6 6 7 7 %process data and model 8 [x y z index is2d ]=processmesh(md,[],options);8 [x y z index is2d isplanet]=processmesh(md,[],options); 9 9 [u datatype]=processdata(md,md.vx,options); 10 10 [v datatype]=processdata(md,md.vy,options); -
issm/trunk/src/m/model/plot/plot_tensor_components.m
r4330 r8472 24 24 25 25 %process data and model 26 [x y z elements is2d ]=processmesh(md,[],options);26 [x y z elements is2d isplanet]=processmesh(md,[],options); 27 27 [tensor.xx datatype]=processdata(md,tensor.xx,options); 28 28 [tensor.yy datatype]=processdata(md,tensor.yy,options); … … 36 36 if ((md.dim==2)), 37 37 subplot(2*width,2*width,index1), 38 plot_unit(x,y,z,elements,tensor.xx,is2d, datatype,options)38 plot_unit(x,y,z,elements,tensor.xx,is2d,isplanet,datatype,options) 39 39 Apply_options_tensor(md,options,type,'xx') 40 40 subplot(2*width,2*width,index2), 41 plot_unit(x,y,z,elements,tensor.yy,is2d, datatype,options)41 plot_unit(x,y,z,elements,tensor.yy,is2d,isplanet,datatype,options) 42 42 Apply_options_tensor(md,options,type,'yy') 43 43 subplot(2*width,2*width,index3), 44 plot_unit(x,y,z,elements,tensor.xy,is2d, datatype,options)44 plot_unit(x,y,z,elements,tensor.xy,is2d,isplanet,datatype,options) 45 45 Apply_options_tensor(md,options,type,'xy') 46 46 else 47 47 subplot(3*width,3*width,index1), 48 plot_unit(x,y,z,elements,tensor.xx,is2d, datatype,options)48 plot_unit(x,y,z,elements,tensor.xx,is2d,isplanet,datatype,options) 49 49 Apply_options_tensor(md,options,type,'xx') 50 50 subplot(3*width,3*width,index2), 51 plot_unit(x,y,z,elements,tensor.yy,is2d, datatype,options)51 plot_unit(x,y,z,elements,tensor.yy,is2d,isplanet,datatype,options) 52 52 Apply_options_tensor(md,options,type,'yy') 53 53 subplot(3*width,3*width,index3), 54 plot_unit(x,y,z,elements,tensor.zz,is2d, datatype,options)54 plot_unit(x,y,z,elements,tensor.zz,is2d,isplanet,datatype,options) 55 55 Apply_options_tensor(md,options,type,'zz') 56 56 subplot(3*width,3*width,index4), 57 plot_unit(x,y,z,elements,tensor.xy,is2d, datatype,options)57 plot_unit(x,y,z,elements,tensor.xy,is2d,isplanet,datatype,options) 58 58 Apply_options_tensor(md,options,type,'xy') 59 59 subplot(3*width,3*width,index5), 60 plot_unit(x,y,z,elements,tensor.xz,is2d, datatype,options)60 plot_unit(x,y,z,elements,tensor.xz,is2d,isplanet,datatype,options) 61 61 Apply_options_tensor(md,options,type,'xz') 62 62 subplot(3*width,3*width,index6), 63 plot_unit(x,y,z,elements,tensor.yz,is2d, datatype,options)63 plot_unit(x,y,z,elements,tensor.yz,is2d,isplanet,datatype,options) 64 64 Apply_options_tensor(md,options,type,'yz') 65 65 end -
issm/trunk/src/m/model/plot/plot_tensor_principal.m
r4330 r8472 37 37 38 38 %now plot principal values 39 [x y z elements is2d ]=processmesh(md,[],options);39 [x y z elements is2d isplanet]=processmesh(md,[],options); 40 40 [tensor.principalvalue1 datatype]=processdata(md,tensor.principalvalue1,options); 41 41 [tensor.principalvalue2 datatype]=processdata(md,tensor.principalvalue2,options); … … 46 46 if ((md.dim==2)), 47 47 subplot(2*width,2*width,index3) 48 plot_unit(x,y,z,elements,tensor.principalvalue1,is2d, datatype,options)48 plot_unit(x,y,z,elements,tensor.principalvalue1,is2d,isplanet,datatype,options) 49 49 Apply_options_tensor(md,options,type,'principal value 1') 50 50 subplot(2*width,2*width,index4) 51 plot_unit(x,y,z,elements,tensor.principalvalue2,is2d, datatype,options)51 plot_unit(x,y,z,elements,tensor.principalvalue2,is2d,isplanet,datatype,options) 52 52 Apply_options_tensor(md,options,type,'principal value 2') 53 53 else 54 54 subplot(3*width,3*width,index4) 55 plot_unit(x,y,z,elements,tensor.principalvalue1,is2d, datatype,options)55 plot_unit(x,y,z,elements,tensor.principalvalue1,is2d,isplanet,datatype,options) 56 56 Apply_options_tensor(md,options,type,'principal value 1') 57 57 subplot(3*width,3*width,index5) 58 plot_unit(x,y,z,elements,tensor.principalvalue2,is2d, datatype,options)58 plot_unit(x,y,z,elements,tensor.principalvalue2,is2d,isplanet,datatype,options) 59 59 Apply_options_tensor(md,options,type,'principal value 2') 60 60 subplot(3*width,3*width,index6) 61 plot_unit(x,y,z,elements,tensor.principalvalue3,is2d, datatype,options)61 plot_unit(x,y,z,elements,tensor.principalvalue3,is2d,isplanet,datatype,options) 62 62 Apply_options_tensor(md,options,type,'principal value 3') 63 63 end -
issm/trunk/src/m/model/plot/plot_tensor_principalaxis.m
r8298 r8472 11 11 12 12 %process data and model 13 [x y z elements is2d ]=processmesh(md,[],options);13 [x y z elements is2d isplanet]=processmesh(md,[],options); 14 14 15 15 if ((md.dim==2)), -
issm/trunk/src/m/model/plot/plot_transient_field.m
r8430 r8472 27 27 28 28 %process mes only once 29 [x y z elements is2d ]=processmesh(md,[],options);29 [x y z elements is2d isplanet]=processmesh(md,[],options); 30 30 31 31 %plot data for all steps … … 38 38 %create plot of step i 39 39 subplot(subplotwidth,subplotwidth,i); 40 plot_unit(x,y,z,elements,data,is2d, datatype,options)40 plot_unit(x,y,z,elements,data,is2d,isplanet,datatype,options) 41 41 applyoptions(md,data,options); 42 42 -
issm/trunk/src/m/model/plot/plot_transient_movie.m
r8430 r8472 21 21 22 22 %process data 23 [x y z elements is2d ]=processmesh(md,results(i).(field),options);23 [x y z elements is2d isplanet]=processmesh(md,results(i).(field),options); 24 24 [data datatype]=processdata(md,results(i).(field),options); 25 25 26 26 titlestring=[field ' at time ' num2str(results(i).time/md.yts) ' year']; 27 plot_unit(x,y,z,elements,data,is2d, datatype,options)27 plot_unit(x,y,z,elements,data,is2d,isplanet,datatype,options) 28 28 apply_options_movie(md,options,titlestring); 29 29 -
issm/trunk/src/m/model/plot/plot_unit.m
r8128 r8472 1 function plot_unit(x,y,z,elements,data,is2d, datatype,options)1 function plot_unit(x,y,z,elements,data,is2d,isplanet,datatype,options) 2 2 %PLOT_UNIT - unit plot, display data 3 3 % 4 4 % Usage: 5 % plot_unit(x,y,z,elements,data,is2d, datatype,options);5 % plot_unit(x,y,z,elements,data,is2d,isplanet,datatype,options); 6 6 % 7 7 % See also: PLOTMODEL, PLOT_MANAGER … … 34 34 patch( 'Faces', [A B C], 'Vertices', [x y z],'FaceVertexCData', data(:),'FaceColor','interp','EdgeColor',edgecolor); 35 35 else 36 A=elements(:,1); B=elements(:,2); C=elements(:,3); D=elements(:,4); E=elements(:,5); F=elements(:,6); 37 patch( 'Faces', [A B C], 'Vertices', [x y z],'FaceVertexCData', data(:),'FaceColor','interp','EdgeColor',edgecolor); 38 patch( 'Faces', [D E F], 'Vertices', [x y z],'FaceVertexCData', data(:),'FaceColor','interp','EdgeColor',edgecolor); 39 patch( 'Faces', [A B E D],'Vertices', [x y z],'FaceVertexCData', data(:),'FaceColor','interp','EdgeColor',edgecolor); 40 patch( 'Faces', [B E F C],'Vertices', [x y z],'FaceVertexCData', data(:),'FaceColor','interp','EdgeColor',edgecolor); 41 patch( 'Faces', [C A D F],'Vertices', [x y z],'FaceVertexCData', data(:),'FaceColor','interp','EdgeColor',edgecolor); 36 if ~isplanet, 37 A=elements(:,1); B=elements(:,2); C=elements(:,3); D=elements(:,4); E=elements(:,5); F=elements(:,6); 38 patch( 'Faces', [A B C], 'Vertices', [x y z],'FaceVertexCData', data(:),'FaceColor','interp','EdgeColor',edgecolor); 39 patch( 'Faces', [D E F], 'Vertices', [x y z],'FaceVertexCData', data(:),'FaceColor','interp','EdgeColor',edgecolor); 40 patch( 'Faces', [A B E D],'Vertices', [x y z],'FaceVertexCData', data(:),'FaceColor','interp','EdgeColor',edgecolor); 41 patch( 'Faces', [B E F C],'Vertices', [x y z],'FaceVertexCData', data(:),'FaceColor','interp','EdgeColor',edgecolor); 42 patch( 'Faces', [C A D F],'Vertices', [x y z],'FaceVertexCData', data(:),'FaceColor','interp','EdgeColor',edgecolor); 43 else 44 A=elements(:,1); B=elements(:,2); C=elements(:,3); D=elements(:,4); 45 patch( 'Faces', [A B C D], 'Vertices', [x y z],'FaceVertexCData', data(:),'FaceColor','interp','EdgeColor',edgecolor); 46 end 42 47 end 43 48 -
issm/trunk/src/m/model/plot/processmesh.m
r8298 r8472 1 function [x y z elements is2d ]=processmesh(md,data,options);1 function [x y z elements is2d isplanet]=processmesh(md,data,options); 2 2 %PROCESSMESH - process mesh to be plotted 3 3 % … … 91 91 z=z*unit; 92 92 end 93 94 if md.planet, 95 isplanet=1; 96 else 97 isplanet=0; 98 end
Note:
See TracChangeset
for help on using the changeset viewer.