pNeuma_simulator.animations module

pNeuma_simulator.animations.draw(particle: Particle, ax: Axes) None[source]

Add this Particle’s Ellipse patch to the Matplotlib Axes.

Parameters:
  • particle (Particle) – The particle object to be drawn.

  • ax (mpl_axes.Axes) – The Matplotlib Axes object to add the patch to.

pNeuma_simulator.animations.ring(t: int, l_agents: list, ax: Axes, sampler) None[source]

Draw the ring animation for a given time step.

Parameters:
  • t (int) – The time step.

  • l_agents (list) – A list of agents at each time step.

  • ax (matplotlib.axes.Axes) – The matplotlib axes object to draw the animation on.

  • sampler – The sampler object.