Skip to content

coord_fixed

coord_fixed(
    ratio: Number = 1.0,
    xlim: Sequence[Number | None] | None = None,
    ylim: Sequence[Number | None] | None = None,
    flip: bool = False,
) -> FeatureSpec

Cartesian coordinates with a fixed aspect ratio.

Parameters:

  • ratio (float, default: 1.0 ) –

    Length of one y unit relative to one x unit on screen; the panel shrinks to keep it and is centred.

  • xlim (list, default: None ) –

    As in coord_cartesian.

  • ylim (list, default: None ) –

    As in coord_cartesian.

  • flip (bool, default: False ) –

    Swap x and y (not drawn yet; ggrust warns).

Returns:

  • FeatureSpec –

    The coordinate system.