Legend Utilities

Placement

publiplots.legend

Create a publication-ready legend for one axes, a subset, or the full figure.

publiplots.MultiAxesLegendGroup

Unified legend band across multiple axes.

Builder

publiplots.LegendBuilder

Publication-ready legend builder with automatic column overflow.

publiplots.create_legend_handles

Create custom legend handles with alpha and linewidth embedded.

publiplots.get_legend_handler_map

Get a handler map for automatic legend styling.

Handlers

publiplots.HandlerRectangle

Custom legend handler for double-layer rectangle markers.

publiplots.HandlerMarker

Generic legend handler for any matplotlib marker type.

publiplots.HandlerLineMarker

Legend handler for line+marker combinations (pointplot, lineplot, etc.).

Patches

publiplots.RectanglePatch

Custom rectangle patch object for legend handles.

publiplots.MarkerPatch

Custom marker patch object for legend handles.

publiplots.LineMarkerPatch

Custom patch for line+marker legend handles (pointplot, lineplot, etc.).