# Author: Simon-Pierre Boucher — contact@spboucher.ai """Shared matplotlib style and colour palette for all WP9 figures.""" import matplotlib matplotlib.use("Agg") import matplotlib.pyplot as plt # noqa: E402 ACCENT = "#16365c" # dark navy — primary series ACCENT2 = "#a02020" # dark red — reference/contrast ACCENT3 = "#4a7ab5" # medium blue GREEN = "#2e7d32" ORANGE = "#e08214" GREY = "#888888" LIGHT = "#b0c4de" NEUTRAL = "#cccccc" def apply_style() -> None: """Serif fonts, open spines, print-quality DPI — applied by every figure script.""" plt.rcParams.update({ "font.size": 10, "figure.dpi": 150, "savefig.dpi": 220, "axes.spines.top": False, "axes.spines.right": False, "font.family": "serif", })