Skip to content

Commit

Permalink
add fenceplot
Browse files Browse the repository at this point in the history
  • Loading branch information
sfeam committed Nov 10, 2016
1 parent b2ddea3 commit f0a4d5b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions demo/zerror.dem
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#
# zerrorfill with and without depth-sorting
#
set yrange [0.5:5.5]
set zrange [1:*]
set xyplane at 1
Expand All @@ -18,3 +21,23 @@ splot for [k=1:5] 'silver.dat' using 1:(k):2:3 with zerror lt black fc lt k titl

pause -1 "Hit return to continue"
reset
#
# Reproduce surface1.dem plot #16
# using zerrorfill instead of hidden3d parametric surfaces
#
set format z "%.1f"
unset key
set view 66, 200, 1, 1
unset xtics
unset ytics
set title "\"fence plot\" using zerrorfill"
set xlabel "X axis" rotate parallel
set ylabel "Y axis" rotate parallel
set pm3d depthorder
sinc(u,v) = sin(sqrt(u**2+v**2)) / sqrt(u**2+v**2)

set style fill transparent solid 0.75 noborder
splot for [i=-5:4][x=-50:50:5] '+' using (i):($1/100.):(-1):(-1):(sinc($1/10., 1.+i)) with zerrorfill

pause -1 "Hit return to continue"
reset

0 comments on commit f0a4d5b

Please sign in to comment.