plotting#

This module provides plotting methods including methods to plot the age-specific contact matrix in different contact layers.

Classes

plotting_kwargs

A class to set and operate on plotting kwargs throughout synthpops.

Functions

calculate_contact_matrix

Calculate the symmetric age-specific contact matrix from the connections for all people in the population.

plot_contacts

Plot the age mixing matrix for a specific contact layer.

plot_array

Plot histogram on a sorted array based by names.

plot_ages

Plot a comparison of the expected and generated age distribution.

plot_household_sizes

Plot a comparison of the expected and generated household size distribution.

plot_ltcf_resident_sizes

Plot a comparison of the expected and generated ltcf resident sizes.

plot_enrollment_rates_by_age

Plot a comparison of the expected and generated school enrollment rates by age.

plot_employment_rates_by_age

Plot a comparison of the expected and generated employment rates by age.

plot_school_sizes

Plot a comparison of the expected and generated school size distribution for each type of school expected.

plot_workplace_sizes

Plot a comparison of the expected and generated workplace sizes for workplaces outside of schools or long term care facilities.

plot_household_head_ages_by_size

Plot a comparison of the expected and generated age distribution of the household heads by the household size, presented as matrices.

plot_contact_counts

Plot the number of contacts by contact types as a histogram.