plot_functions.plot_battery_levels#
- plot_functions.plot_battery_levels(df_ambulance, run_nr: int, SIMULATION_PARAMETERS: dict[str, Any], NUM_COLS: int = 5) None #
Plots the battery levels over time of the each ambulance.
Saved as “battery_levels_ambus_{run_nr}.pdf” if
SAVE_PLOTS=True
.- Parameters:
df_ambulance (pandas.DataFrame) – A dataframe with the ambulance data where each row represents an ambulance event. At least columns “ambulance_ID”, “battery_level_after” and “time” are necessary. See the output data section on the ELASPY website for explanations.
run_nr (int) – The simulation run number.
SIMULATION_PARAMETERS (dict[str, Any]) – The simulation parameters. The parameters
NUM_AMBULANCES
,SAVE_PLOTS
andSIMULATION_OUTPUT_DIRECTORY
are at least necessary. Seemain.py
for parameter explanations.NUM_COLS (int, optional) – The number of plot columns you want the plot to have. The default is 5.