SPB Git

spb/wp9_uqo Public

UQO Working Paper No. 9 — A grand hedonic model of the Canadian housing market: decomposing structure and location value.

TeX 60.1% Python 39.8%
785 B · 28 lines python
Raw Blame History
1# Author: Simon-Pierre Boucher — contact@spboucher.ai2"""Shared matplotlib style and colour palette for all WP9 figures."""3import matplotlib45matplotlib.use("Agg")6import matplotlib.pyplot as plt  # noqa: E40278ACCENT = "#16365c"    # dark navy — primary series9ACCENT2 = "#a02020"   # dark red — reference/contrast10ACCENT3 = "#4a7ab5"   # medium blue11GREEN = "#2e7d32"12ORANGE = "#e08214"13GREY = "#888888"14LIGHT = "#b0c4de"15NEUTRAL = "#cccccc"161718def apply_style() -> None:19    """Serif fonts, open spines, print-quality DPI — applied by every figure script."""20    plt.rcParams.update({21        "font.size": 10,22        "figure.dpi": 150,23        "savefig.dpi": 220,24        "axes.spines.top": False,25        "axes.spines.right": False,26        "font.family": "serif",27    })28