summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pgfplots/plotdata/plotgraphics3.m
blob: eece73aabfbea4c0e7e9f91c81d5848dc4b743f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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