plot_contact_counts#
- plot_contact_counts(contact_counter, **kwargs)[source]#
Plot the number of contacts by contact types as a histogram. The contact_counter is a dictionary with keys = people_types (default to school layer [‘sc_student’, ‘sc_teacher’, ‘sc_staff’]) and each value is a dictionary which stores the list of counts for each type of contact, for example [‘sc_teacher’, ‘sc_student’, ‘sc_staff’, ‘all_staff’, ‘all’].
- Parameters:
contact_counter (dict) – A dictionary with people_types as keys and value as list of counts for each type of contacts
**title_prefix (str) – optional title prefix for the figure
**figname (str) – name to save figure to disk
**fontsize (float) – Matplotlib.figure.fontsize
- Returns:
Matplotlib figure and axes of the histograms of contact distributions for the corresponding contact_counter.