diff options
author | Karl Berry <karl@freefriends.org> | 2010-07-05 00:24:45 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-07-05 00:24:45 +0000 |
commit | 1fff2e715d8cf25331a3aab6d1324328cbdcf557 (patch) | |
tree | 50cc2d03dbc732b8bf70e46310a43e4bd53d55d6 /Master/texmf/doc/asymptote/examples/bars3.asy | |
parent | a06e5c017823a9a6673af33599d3f9fe34b1b7e8 (diff) |
asymptote 2.00
git-svn-id: svn://tug.org/texlive/trunk@19235 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/doc/asymptote/examples/bars3.asy')
-rw-r--r-- | Master/texmf/doc/asymptote/examples/bars3.asy | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Master/texmf/doc/asymptote/examples/bars3.asy b/Master/texmf/doc/asymptote/examples/bars3.asy new file mode 100644 index 00000000000..4205d46f37c --- /dev/null +++ b/Master/texmf/doc/asymptote/examples/bars3.asy @@ -0,0 +1,22 @@ +import three; +import palette; +import graph3; + +size(300); + +currentprojection=perspective(-30,-30,30,up=Z); + +surface s; + +for(int i = 0; i < 10; ++i) { + for(int j = 0; j < 10; ++j) { + s.append(shift(i,j,0)*scale(1,1,i+j)*unitcube); + } +} + +s.colors(palette(s.map(zpart),Rainbow())); +draw(s,meshpen=black+thick(),nolight,render(merge=true)); + +xaxis3("$x$",Bounds,InTicks(endlabel=false,Label,2,2)); +yaxis3(YZ()*"$y$",Bounds,InTicks(beginlabel=false,Label,2,2)); +zaxis3(XZ()*"$z$",Bounds,InTicks); |