liveplotter module#
- class liveplotter.LivePlotter(simulation, objectives, update_graph_interval=1, update_point_interval=1)#
Bases:
object
Live plotter for the simulation
- Parameters:
simulation (Simulation) – simulation to plot
objectives (list[Objective]) – objectives to plot
update_graph_interval (int) – interval to update the graph
update_point_interval (int) – interval to update the points
- add_points(simulation, tim)#
Adds points to the plot
- Parameters:
simulation (Simulation) – simulation to plot
tim (int) – current time
- set_line_data(objective)#
Sets the data of a line
- Parameters:
objective (Objective) – objective to set the data of
- start_plot(simulation, start_time, step_amount)#
Starts the plotter
- Parameters:
simulation (Simulation) – simulation to plot
start_time (int) – start time of the simulation
step_amount (int) – amount of steps in the simulation
- step(simulation, tim)#
Steps the plotter
- Parameters:
simulation (Simulation) – simulation to plot
tim (int) – current time