1

Ajoute l’étape 25 de répartition des minifigs par genre

This commit is contained in:
2025-12-02 11:42:50 +01:00
parent f5c1fa6333
commit 1f18195df2
9 changed files with 190 additions and 26 deletions

View File

@@ -8,22 +8,10 @@ from matplotlib.patches import Patch
from lib.filesystem import ensure_parent_dir
from lib.milestones import load_milestones
from lib.plots.gender_palette import GENDER_COLORS, GENDER_LABELS
from lib.rebrickable.stats import read_rows
GENDER_COLORS = {
"male": "#4c72b0",
"female": "#c44e52",
"unknown": "#7f7f7f",
}
GENDER_LABELS = {
"male": "Homme",
"female": "Femme",
"unknown": "Inconnu",
"": "Inconnu",
}
def load_spans(path: Path) -> List[dict]:
"""Charge le CSV des bornes min/max par personnage."""
return read_rows(path)