rcognita.visualization.animator.Animator
- class rcognita.visualization.animator.Animator(subplot_grid_size=[2, 2])
Interface class of visualization machinery for simulation of system-controller loops. To design a concrete animator: inherit this class, override:
__init__()
:define necessary visual elements (required)init_anim()
:initialize necessary visual elements (required)animate()
:animate visual elements (required)- objects
Objects to be updated within animation cycle
- Type
: tuple
- pars
Fixed parameters of objects and visual elements
- Type
: tuple
- __init__(subplot_grid_size=[2, 2])
Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
([subplot_grid_size])Initialize self.
animate
(k)collect_dashboards
(*dashboards)get_anm
(anm)anm
should be aFuncAnimation
object.get_index
(r, c)init_anim
()playback
()set_sim_data
(**kwargs)This function is needed for playback purposes when simulation data were generated elsewhere.
stop_anm
()Stops animation, provided that
self.anm
was defined viaget_anm
.update_dashboards
(update_variant)