|
#
# Demonstrate construction of a convex hull used to mask
# out regions of a surface that are outside a cluster of points.
# Inspired by a Stack Overflow query from @theozh
# https://stackoverflow.com/questions/68507660/
#
set view map
set palette rgb 33,13,10
set xrange [-30:25]
set yrange [-30:25]
set margins screen 0.2, screen 0.8, screen 0.1, screen 0.9
unset key
set tics scale 0
set title "Convex hull constructed around scattered points"
plot 'mask_pm3d.dat' using 1:2:3 with points lc palette pt 7 ps 2, \
'' using 1:2 convexhull with lines lc "black" lw 3
set table $HULL
plot 'mask_pm3d.dat' using 1:2 convexhull with lines title "Convex hull"
unset table
print $HULL
Click here for minimal script to generate this plot
|