diff --git a/ultraplot/legend.py b/ultraplot/legend.py index c8c5c579d..db6e5f777 100644 --- a/ultraplot/legend.py +++ b/ultraplot/legend.py @@ -138,11 +138,14 @@ def marker(cls, label=None, marker="o", **kwargs): "pentagon": mpath.Path.unit_regular_polygon(5), "hexagon": mpath.Path.unit_regular_polygon(6), "star": mpath.Path.unit_regular_star(5), + "rectangle": mpath.Path( + [[0, 0], [2, 0], [2, 1], [0, 1], [0, 0]], closed=True, readonly=True + ), } _GEOMETRY_SHAPE_ALIASES = { "box": "square", - "rect": "square", - "rectangle": "square", + "rect": "rectangle", + "rec": "rectangle", "tri": "triangle", "pent": "pentagon", "hex": "hexagon",