diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/pgfplots/plotdata/plotgraphics3.m')
-rw-r--r-- | Master/texmf-dist/doc/latex/pgfplots/plotdata/plotgraphics3.m | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pgfplots/plotdata/plotgraphics3.m b/Master/texmf-dist/doc/latex/pgfplots/plotdata/plotgraphics3.m new file mode 100644 index 00000000000..eece73aabfb --- /dev/null +++ b/Master/texmf-dist/doc/latex/pgfplots/plotdata/plotgraphics3.m @@ -0,0 +1,18 @@ +clear all +close all +seed = sum(clock) +rand('seed',seed); +X = rand(10,10,10); +data = smooth3(X,'box',5); +p1 = patch(isosurface(data,.5), ... + 'FaceColor','blue','EdgeColor','none'); +p2 = patch(isocaps(data,.5), ... + 'FaceColor','interp','EdgeColor','none'); +isonormals(data,p1) +daspect([1 2 2]) +view(3); axis vis3d tight +camlight; lighting phong +% print -dpng plotgraphics3withaxis +axis off +print -dpng plotgraphics3 +save plotgraphics3.seed seed -ASCII % to reproduce the result |