fragile.dataviz.plot_root#

Module Contents#

Classes#

PlotRootWalker

The Walkers is a data structure that takes care of all the data involved in making a Swarm evolve.

PlotMario

The Walkers is a data structure that takes care of all the data involved in making a Swarm evolve.

class fragile.dataviz.plot_root.PlotRootWalker(image_shape=None, step_after_set_state=False, **kwargs)#

Bases: fragile.dataviz.stream_plots.PlotCallback

The Walkers is a data structure that takes care of all the data involved in making a Swarm evolve.

Parameters

step_after_set_state (bool) –

name = plot_root#
property root#
property image_shape#
Return type

Union[None, Tuple[int, Ellipsis]]

setup(swarm)#

Prepare the component during the setup phase of the Swarm.

send()#
panel()#
image_from_state(state)#
reset(root_walker=None, state=None, **kwargs)#

Reset the internal state of the SwarmComponent.

Parameters
  • inplace (bool, optional) – Unused. Defaults to True.

  • root_walker (Optional[StateData], optional) – Set the internal state of the SwarmComponent to this value. Defaults to None.

  • states (Optional[StateData], optional) – Set the internal state of the SwarmComponent to this value. Defaults to None.

  • kwargs – Other parameters required to reset the component.

class fragile.dataviz.plot_root.PlotMario(**kwargs)#

Bases: PlotRootWalker

The Walkers is a data structure that takes care of all the data involved in making a Swarm evolve.

send()#
panel()#
image_from_state(state)#