Skip to main content

compute_layout_in_rect

Function compute_layout_in_rect 

Source
pub fn compute_layout_in_rect(
    cell: &Rect,
    config: &LayoutConfig,
) -> LayoutResult
Expand description

Convenience wrapper that runs compute_layout within a specific rectangle (e.g., one cell of a subplot grid).

The returned LayoutResult uses the same coordinate system as the input cell — that is, all positions are in figure-pixel coordinates, not relative to the cell origin.