diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/pgfplots/plotdata/plotgraphics1.m')
-rw-r--r-- | Master/texmf-dist/doc/latex/pgfplots/plotdata/plotgraphics1.m | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pgfplots/plotdata/plotgraphics1.m b/Master/texmf-dist/doc/latex/pgfplots/plotdata/plotgraphics1.m new file mode 100644 index 00000000000..13f28c6a1a6 --- /dev/null +++ b/Master/texmf-dist/doc/latex/pgfplots/plotdata/plotgraphics1.m @@ -0,0 +1,20 @@ +load wind +xmin = min(x(:)); +xmax = max(x(:)); +ymax = max(y(:)); +zmin = min(z(:)); +wind_speed = sqrt(u.^2 + v.^2 + w.^2); +hsurfaces = slice(x,y,z,wind_speed,[xmin,100,xmax],ymax,zmin); +set(hsurfaces,'FaceColor','interp','EdgeColor','none') +hcont = contourslice(x,y,z,wind_speed,[xmin,100,xmax],ymax,zmin); +set(hcont,'EdgeColor',[.7,.7,.7],'LineWidth',.5) +[sx,sy,sz] = meshgrid(80,20:10:50,0:5:15); +hlines = streamline(x,y,z,u,v,w,sx,sy,sz); +set(hlines,'LineWidth',2,'Color','r') +view(3) +daspect([2,2,1]) +axis tight + +axis off +print -dpng plotgraphics3d +[h,v]=view |