plot_functions.hist_battery_increase_decrease#
- plot_functions.hist_battery_increase_decrease(df_ambulance, run_nr: int, SIMULATION_PARAMETERS: dict[str, Any]) None #
Makes histograms of the battery decreases and increases.
The battery decrease histogram is saved as “histogram_battery_decrease_{run_nr}.pdf” and the battery increase histogram is saved as “histogram_battery_increase_{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 “battery_decrease” and “battery_increase” 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
SAVE_PLOTS
andSIMULATION_OUTPUT_DIRECTORY
are at least necessary. Seemain.py
for parameter explanations.