|
set title "step through volume using the density values to color a surface\n" \
. "splot '++' using 1:2:(z):(voxel($1,$2,z)) with pm3d"
set view 48, 114
set sample 50,50; set isosample 50,50
set cbrange [1:40]
set pm3d depthorder noborder interpolate 2,2
set pm3d noclipcb
set style fill transparent solid 0.5
set obj 1 rectangle from screen 0,0,0 to screen 1,1,1 behind fs solid 1.0 fc "white"
#
# The loops should only be done if the session is interactive
#
if (!exists("NO_ANIMATION")) {
do for [iz = -35 : 0] {
z = iz / 10.
splot '++' using 1:2:(z):(voxel($1,$2,z)) with pm3d
; pause 0.1
}
do for [iz = 35 : 0 : -1] {
z = iz / 10.
splot '++' using 1:(-z):2:(voxel($1,-z,$2)) with pm3d, \
'++' using 1:2:(0):(voxel($1,$2,0)) with pm3d
; pause 0.1
}
} else {
print "Skipping animation"
}
#
# replot once with all three axis slices
#
set title "orthogonal slices through volume\n" \
. "using the density values to color the surfaces"
splot '++' using 1:(0):2:(voxel($1,0,$2)) with pm3d, \
'++' using 1:2:(0):(voxel($1,$2,0)) with pm3d, \
'++' using (0):1:2:(voxel(0,$1,$2)) with pm3d
Click here for minimal script to generate this plot
|