Skip to content

exit_shrink

exit_shrink(size: float = 0) -> FeatureSpec

Shrink marks to nothing as they exit (gganimate exit_shrink).

Exiting marks move from full size to size times their size, by the same per-geom rules as enter_grow.

Parameters:

  • size (float, default: 0 ) –

    The share of the full size exiting marks end at.

Returns:

  • FeatureSpec –

    The effect (kind "animation"), added to a plot with +.

Raises:

  • SpecError –

    If size is not a number >= 0.

Examples:

>>> from ggrust import *
>>> exit_shrink(0.5).props()["exit"]
[{'name': 'shrink', 'size': 0.5}]