pNeuma_simulator.animations module
- pNeuma_simulator.animations.draw(agent: dict, n: int, n_cars: int, ax: Axes) None[source]
Add this serialized agent’s Ellipse patch to the Matplotlib Axes ax.
- Parameters:
agent (dict) – The agent object to be drawn.
n (int) – positional index of agent
n_cars (int) – The number of cars in the dataset.
ax (mpl_axes.Axes) – The Matplotlib Axes object to add the patch to.
- pNeuma_simulator.animations.ring(t: int, n_cars: int, l_agents: list, ax: Axes) None[source]
Draw the ring animation for a given time step.
- Parameters:
t (int) – The time step.
n_cars (int) – The number of cars in the dataset.
l_agents (list) – A list of agents at each time step.
ax (matplotlib.axes.Axes) – The matplotlib axes object to draw the animation on.