oadr_cpep.plot module

Plotting for oadr-cpep. All graphics live here (matplotlib for PNG/SVG, plotly for the self-contained interactive HTML) so the compute modules stay free of rendering code.

oadr_cpep.plot.scatter(y, pred, title, base)[source]

One observed-vs-predicted scatter -> <base>.png, .svg, and interactive .html.

oadr_cpep.plot.solo_vs_federated(site, panel, y, results, base, sites_label='')[source]

Per-method solo-vs-federated grid (rows = methods, cols = solo|federated) -> <base>.png, .svg, and interactive .html. results is the list built by apply_coefficients (each has method, solo, fed, r2_solo, ci_solo, r2_fed, ci_fed).