1

Ajoute deux variantes de heatmap couleurs et pastilles alignées

This commit is contained in:
2025-12-01 23:01:12 +01:00
parent 640c6333f0
commit d494c1a695
4 changed files with 50 additions and 17 deletions

View File

@@ -8,13 +8,15 @@ from lib.plots.colors_timeline import plot_colors_heatmap, plot_translucent_shar
TIMELINE_PATH = Path("data/intermediate/colors_timeline.csv")
MATRIX_PATH = Path("data/intermediate/colors_year_color_matrix.csv")
TRANSLUCENT_DESTINATION = Path("figures/step14/colors_translucent_share.png")
HEATMAP_DESTINATION = Path("figures/step14/colors_heatmap.png")
HEATMAP_LINEAR_DESTINATION = Path("figures/step14/colors_heatmap_linear.png")
HEATMAP_LOG_DESTINATION = Path("figures/step14/colors_heatmap_log.png")
def main() -> None:
"""Construit les visuels d'évolution annuelle des palettes."""
plot_translucent_share(TIMELINE_PATH, TRANSLUCENT_DESTINATION)
plot_colors_heatmap(MATRIX_PATH, HEATMAP_DESTINATION)
plot_colors_heatmap(MATRIX_PATH, HEATMAP_LINEAR_DESTINATION, use_log_scale=False)
plot_colors_heatmap(MATRIX_PATH, HEATMAP_LOG_DESTINATION, use_log_scale=True)
if __name__ == "__main__":