pandemia.reporters.plot¶
Reporters that output a plot
Module Contents¶
Classes¶
Reporter that returns a plot at the end of the simulation. This reporter plots the number of |
|
Reporter that returns a plot at the end of the simulation. This reporter plots the number of |
- class pandemia.reporters.plot.PlotDeaths(telemetry_bus, config)¶
Bases:
pandemia.reporters.ReporterReporter that returns a plot at the end of the simulation. This reporter plots the number of deaths (both daily deaths and cumulative deaths) each day. If a filepath is given to historical data, this reporter will plot that too, for comparison.
- initialize(region_names_to_super_regions, regions_omitted)¶
Called when the simulation starts.
- update_counts(clock, daily_deaths, cumulative_deaths)¶
Update counts
- stop_sim()¶
Called when the simulation ends.
- class pandemia.reporters.plot.PlotInfected(telemetry_bus, config)¶
Bases:
pandemia.reporters.ReporterReporter that returns a plot at the end of the simulation. This reporter plots the number of people infected each day (daily prevalence).
- initialize(number_of_regions, number_of_strains, region_names, population_sizes)¶
Called when the simulation starts.
- update_counts(clock, strain_counts)¶
Update counts
- stop_sim()¶
Called when the simulation ends.
- plot_sir()¶
Plots solution to an SIR model
- plot_sir_age(pop_by_age_group, initial_cases_by_age_group)¶
Plots solution to an SIR model