Skip to main content

epiplot

CI PyPI

Plots for epidemiology and public health research, with good practice built in.

An epidemic curve made with epiplot

Status

Early development (alpha). The first plot, the epidemic curve, is ready to try. Rate maps and survival curves are planned.

Install

pip install epiplot

Requires Python 3.13 or newer. Works in Google Colab.

Example

import pandas as pd

import epiplot

# One row per case (a "line list").
cases = pd.DataFrame(
    {
        "onset_date": ["2026-03-02", "2026-03-04", "2026-03-10", "2026-03-11", None],
        "origin": ["Local", "Travel", "Local", "Local", "Travel"],
    }
)

ax = epiplot.epicurve(cases, "onset_date", date_type="onset", group_col="origin")
ax.figure.savefig("epicurve.png")

For the counts behind the plot, as a table, use epiplot.count_cases(). A fuller example is in examples/epicurve_example.py.

Good practice built in

  • Says what the dates mean. Onset, report, specimen or diagnosis dates tell different stories, so epiplot labels the axis to match, and warns if the date type isn't given.
  • Shows empty periods as zero, so gaps in an outbreak stay visible.
  • Reports cases with missing dates under the plot, instead of silently leaving them out.
  • Shades recent periods that may be incomplete because of reporting delays, if you give it a date.
  • Uses colour-blind-safe colours, with missing groups in grey.
  • Supports ISO weeks (starting Monday) and US CDC weeks (starting Sunday).

License

BSD 3-Clause. See LICENSE.

Metadata

Release files for epiplot 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for epiplot 0.2.0
File Size Uploaded Provenance Actions
epiplot-0.2.0.tar.gz 13.5 kB With provenance Details for epiplot-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for epiplot 0.2.0
File Interpreter ABI Platform Actions
epiplot-0.2.0-py3-none-any.whl Python 3 none any Details for epiplot-0.2.0-py3-none-any.whl

Total release size: 23.3 kB

Release files / epiplot-0.2.0.tar.gz

Download URL epiplot-0.2.0.tar.gz
Size 13.5 kB
Tags Source
SHA-256 checksum
How to use checksums
67a92fcb0fca43dd546e8d40c244edfff983ffd9f52206f880ced643aa7b27c3
BLAKE2b-256 checksum
How to use checksums
9b6b86b31a098422b22d11da69df4798a26f949bc8b091f57a7e17281c51f438
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

Release files / epiplot-0.2.0-py3-none-any.whl

Download URL epiplot-0.2.0-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bed0d9a164cb4fa7498ecb4a36f9e9153b5c483ffd235e283e829e6745551564
BLAKE2b-256 checksum
How to use checksums
c9db4993ac6a807ceb0ee4cc4fa7298862347d57f3890aaf2e0653a951601515
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

Security for epiplot 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for epiplot-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page