aryagraph.render.animate.animate#

aryagraph.render.animate.animate(result: Any, layout: Any = None, *, theme: Any = 'light', title: str | None = None, subtitle: str | None = None, chart: bool = True, max_frames: int = 600, static_frame: str | int = 'last', autoplay: bool = False, time_format: str | None = None, **draw_kwargs: Any) → Figure[source]#

Interactive animation of a SimulationResult.

Parameters:
  • layout – Anything aryagraph.draw() accepts (None = automatic).

  • chart – Show the synced state-count chart under the player.

  • max_frames – Longer runs are evenly subsampled (edge activity of skipped frames is merged into the next kept frame, so no transmission is lost).

  • static_frame – Which frame the static SVG/PNG export shows: "last", "first" or an index.

  • **draw_kwargs – Passed to aryagraph.draw() (node_size, labels, node_shape …).