Hull
The convex hull around points, one per group, as triangles for Polygon.
Static preview; loading the interactive plot
import hmplot as hm
data = {"x": [1, 3, 2, 4, 2.5, 3], "y": [1, 1, 3, 3, 2, 2.5]}
with hm.Plot(data=data, height=300, axes2d=True) as plot:
with hm.Hull(x="x", y="y"):
hm.Polygon()
plot
Usage
Hull makes the convex hull of each group of by as triangles for Polygon, carrying the group’s first row: fill="species" colors each hull by its group.