Expand description
Layout engine for computing plot area and margins.
This module determines where the plot area, title, axis labels, tick labels, and legend are positioned within the figure dimensions. It implements a mini tight-layout algorithm to prevent clipping and produce well-spaced plots.
Structs§
- Layout
Config - Configuration for layout computation.
- Layout
Result - Result of the layout computation.
- Margins
- Margins in pixels around the plot area.
Functions§
- compute_
layout - Computes the layout for a single axes within a figure.
- compute_
layout_ in_ rect - Convenience wrapper that runs
compute_layoutwithin a specific rectangle (e.g., one cell of a subplot grid). - compute_
subplot_ rects - Computes subplot positions for a grid of axes.