Python API#

The pycohortflow package is organised into two modules.

cfd — Plotting

The main plot_cfd() function that renders a cohort flow diagram from a list of steps.

cfd_util — Utilities

Colour utilities, text wrapping, configuration loading, and other internal helpers.