Back to demo index

gnuplot demo script: isosurface.dem

autogenerated by webify.pl on Fri Dec 20 14:48:12 2024
gnuplot version gnuplot 6.0 patchlevel 2
#
# Demo for direct plotting of voxel data
#    splot $voxelgrid with isosurface
#
if (!exists("VoxelDistance")) exit

set vgrid $helix size 33
set vxrange [-2:2]; set vyrange [-2:2]; set vzrange [0:11]
set xrange [-2:2]; set yrange [-2:2]; set zrange [0:11]
set xyplane at 0
set border 0
set xzeroaxis; set yzeroaxis; set zzeroaxis
set tics axis nomirror format ""
set view 60, 30, 1.6

set style fill transparent solid 0.25
set pm3d depth border lc "blue" lw .4
set jitter

splot sample [t=0:20] '+' using (cos($1)):(sin($1)):($1) with lp


Click here for minimal script to generate this plot




set title "Fill voxel grid around the points shown"
vfill sample [t=0:20] '+'  using (cos($1)):(sin($1)):($1):(0.9):(10.0)

splot sample [t=0:20] '+' using (cos($1)):(sin($1)):($1) with lp notitle, \
      $helix with points pt 7 ps 0.5 title "voxel grid points"


Click here for minimal script to generate this plot




set title "Draw isosurface enclosing all points"

splot $helix with points pt 7 ps 0.4 lt 2 notitle, \
      $helix with isosurface level 1.0 title "isosurface level 1.0" lt 3


Click here for minimal script to generate this plot




set title "isosurface alone"
set style fill solid 0.3

splot $helix with isosurface level 1.0 title "isosurface level 1.0" lt 3


Click here for minimal script to generate this plot