pub fn compute_layout(config: &LayoutConfig) -> LayoutResultExpand description
Computes the layout for a single axes within a figure.
The algorithm works inward from the figure edges in the following order:
- Outer padding on all four sides.
- Top: title (if present), then a gap.
- Bottom: x-axis label (if present), then x-axis tick labels, then a gap.
- Left: y-axis label (if present), then y-axis tick labels, then a gap.
- Right: legend (if present), then a gap.
Whatever remains in the center becomes the plot_area. If the remaining
space is smaller than the configured minimums the plot area is clamped so
that content is never collapsed to zero.