Changeset 14286
- Timestamp:
- 01/25/13 08:01:41 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/plot_BC.m
r13730 r14286 7 7 8 8 %plot dirichlets 9 h1=plot3(... 10 md.mesh.x(find(~isnan(md.diagnostic.spcvx(1:md.mesh.numberofvertices,1)))),... 11 md.mesh.y(find(~isnan(md.diagnostic.spcvx(1:md.mesh.numberofvertices,1)))),... 12 md.mesh.z(find(~isnan(md.diagnostic.spcvx(1:md.mesh.numberofvertices,1)))),... 13 'ro','MarkerSize',14,'MarkerFaceColor','r'); 14 h2=plot3(... 15 md.mesh.x(find(~isnan(md.diagnostic.spcvy(1:md.mesh.numberofvertices,1)))),... 16 md.mesh.y(find(~isnan(md.diagnostic.spcvy(1:md.mesh.numberofvertices,1)))),... 17 md.mesh.z(find(~isnan(md.diagnostic.spcvy(1:md.mesh.numberofvertices,1)))),... 18 'bo','MarkerSize',10,'MarkerFaceColor','b'); 19 h3=plot3(... 20 md.mesh.x(find(~isnan(md.diagnostic.spcvz(1:md.mesh.numberofvertices,1)))),... 21 md.mesh.y(find(~isnan(md.diagnostic.spcvz(1:md.mesh.numberofvertices,1)))),... 22 md.mesh.z(find(~isnan(md.diagnostic.spcvz(1:md.mesh.numberofvertices,1)))),... 23 'yo','MarkerSize',6 ,'MarkerFaceColor','y'); 9 dirichleton=getfieldvalue(options,'dirichlet','on'); 10 if strcmpi(dirichleton,'on'), 11 h1=plot3(... 12 md.mesh.x(find(~isnan(md.diagnostic.spcvx(1:md.mesh.numberofvertices,1)))),... 13 md.mesh.y(find(~isnan(md.diagnostic.spcvx(1:md.mesh.numberofvertices,1)))),... 14 md.mesh.z(find(~isnan(md.diagnostic.spcvx(1:md.mesh.numberofvertices,1)))),... 15 'ro','MarkerSize',14,'MarkerFaceColor','r'); 16 h2=plot3(... 17 md.mesh.x(find(~isnan(md.diagnostic.spcvy(1:md.mesh.numberofvertices,1)))),... 18 md.mesh.y(find(~isnan(md.diagnostic.spcvy(1:md.mesh.numberofvertices,1)))),... 19 md.mesh.z(find(~isnan(md.diagnostic.spcvy(1:md.mesh.numberofvertices,1)))),... 20 'bo','MarkerSize',10,'MarkerFaceColor','b'); 21 h3=plot3(... 22 md.mesh.x(find(~isnan(md.diagnostic.spcvz(1:md.mesh.numberofvertices,1)))),... 23 md.mesh.y(find(~isnan(md.diagnostic.spcvz(1:md.mesh.numberofvertices,1)))),... 24 md.mesh.z(find(~isnan(md.diagnostic.spcvz(1:md.mesh.numberofvertices,1)))),... 25 'yo','MarkerSize',6 ,'MarkerFaceColor','y'); 26 end 24 27 25 28 %update legend 26 29 [legend_h,object_h,plot_h,text_strings]=legend(); 27 30 legend('off'); 28 text_strings{end+1}='vx Dirichlet'; 29 text_strings{end+1}='vy Dirichlet'; 30 if h3, text_strings{end+1}='vz Dirichlet'; end 31 plot_h(end+1)=h1; 32 plot_h(end+1)=h2; 33 if h3, plot_h(end+1)=h3; end 31 if strcmpi(dirichleton,'on'), 32 text_strings{end+1}='vx Dirichlet'; 33 text_strings{end+1}='vy Dirichlet'; 34 if h3, text_strings{end+1}='vz Dirichlet'; end 35 plot_h(end+1)=h1; 36 plot_h(end+1)=h2; 37 if h3, plot_h(end+1)=h3; end 38 end 34 39 legend(plot_h,text_strings,'location','NorthEast') 35 40
Note:
See TracChangeset
for help on using the changeset viewer.