Back to demo index

gnuplot demo script: convex_hull.dem

autogenerated by webify.pl on Sun Sep 17 20:38:25 2023
gnuplot version gnuplot 6.0 patchlevel rc2
Your browser does not support the HTML 5 canvas element
          # unzoom rezoom zoom text ?
     
#
# Convex hulls
#
unset key
set xrange [-30:30]
set yrange [-30:30]
set border 3
set tics nomirror rangelimited
set style fill transparent solid 0.1 border

set title "Generation of convex hull bounding scattered points"

set style line 1 lc "black" pt 6
set style line 2 lc "forest-green" pt 7

plot for [i=0:1] 'hull.dat' index i with points ls (i+1), \
     for [i=0:1] '' index i convexhull with filledcurve ls (i+1)


Click here for minimal script to generate this plot


Your browser does not support the HTML 5 canvas element
          # unzoom rezoom zoom text ?
     

set title "Smooth convex hull"

plot for [i=0:1] 'hull.dat' index i with points ls (i+1), \
     for [i=0:1] '' index i convexhull smooth path with filledcurve ls (i+1)


Click here for minimal script to generate this plot


Your browser does not support the HTML 5 canvas element
          # unzoom rezoom zoom text ?
     

set title "Smooth convex hull expanded by increment of 1.5"

plot for [i=0:1] 'hull.dat' index i with points ls (i+1), \
     for [i=0:1] '' index i convexhull expand 1.5 smooth path with filledcurve ls (i+1)


Click here for minimal script to generate this plot