plot_functions.plot_response_times#

plot_functions.plot_response_times(df_patient, run_nr: int, SIMULATION_PARAMETERS: dict[str, Any]) None#

Makes three different plots of the response time data.

  1. A plot of the response time (y-axis) per patient (x-axis). Saved as “scatter_response_time_{run_nr}.pdf” if SAVE_PLOTS=True.

  2. A histogram of the response times. Saved as “histogram_response_time_{run_nr}.pdf” if SAVE_PLOTS=True.

  3. A bar plot of the waiting time before assigned and driving time per patient. Saved as “bar_waiting_driving_time_{run_nr}.pdf” if SAVE_PLOTS=True.

Parameters:
  • df_patient (pandas.DataFrame) – A dataframe with the patient data where each row represents a patient. At least columns “response_time”, “waiting_time_before_assigned” and “driving_time_to_patient” 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, SIMULATION_OUTPUT_DIRECTORY and NUM_CALLS are at least necessary. See main.py for parameter explanations.