Skip to content

enter_grow

enter_grow(size: float = 0) -> FeatureSpec

Grow marks from nothing as they enter (gganimate enter_grow).

Entering marks start at size times their size and grow to full size over the transition, per geom as gganimate: points and texts scale their size and stroke, bars their height (y and ymax), lines, paths and polygons spread out from their group's mean point, boxplots open from their median. Geoms whose size is a line width (rectangles, areas) are not scaled, as in gganimate, where that is ggplot2's linewidth.

Parameters:

  • size (float, default: 0 ) –

    The share of the full size entering marks start from (0: nothing, 1: full size).

Returns:

  • FeatureSpec –

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

Raises:

  • SpecError –

    If size is not a number >= 0.

Examples:

>>> from ggrust import *
>>> enter_grow().props()["enter"]
[{'name': 'grow', 'size': 0.0}]