Credits Overview Plotting Styles Commands Terminals

convexhull

Convexhull is not a plot style. It can appear either alone as a filter keyword or in combination with smooth path.

     plot FOO using x:y convexhull
     plot FOO using x:y convexhull smooth path {expand <scale>}

figure_convex_hull

The points in FOO are replaced by a subset of the original points that constitute the unique bounding convex polygon, the convex hull. The vertices of this polygon are output in clockwise order to form a closed curve. The first and last points of the generated curve are equal, making it suitable for plotting with styles lines, polygons, or filledcurves. The convex hull may also be useful as a mask to selectively render the region of an image or a pm3d surface that contains all the original data points. See masking.

If the keyword smooth is present, the vertices are then used as guide points to generate a smooth closed curve (see smooth path). By default this smoothed curve runs through the bounding points.

EXPERIMENTAL: The optional expand keyword and scale factor shift the guide points away from the centroid so that for scale values greater than 1.0 the smoothed curve is outside all data points. This procedure is not very satisfactory and will be replaced in a later gnuplot version.