1

Réorganise les visuels de l'étape 15 sous figures/step15

This commit is contained in:
2025-12-01 23:15:59 +01:00
parent d494c1a695
commit 7a193136e5
4 changed files with 36 additions and 11 deletions

View File

@@ -7,9 +7,10 @@ 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_LINEAR_DESTINATION = Path("figures/step14/colors_heatmap_linear.png")
HEATMAP_LOG_DESTINATION = Path("figures/step14/colors_heatmap_log.png")
TRANSLUCENT_DESTINATION = Path("figures/step15/colors_translucent_share.png")
HEATMAP_LINEAR_DESTINATION = Path("figures/step15/colors_heatmap_linear.png")
HEATMAP_LOG_DESTINATION = Path("figures/step15/colors_heatmap_log.png")
HEATMAP_SHARE_DESTINATION = Path("figures/step15/colors_heatmap_share.png")
def main() -> None:
@@ -17,6 +18,7 @@ def main() -> None:
plot_translucent_share(TIMELINE_PATH, TRANSLUCENT_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)
plot_colors_heatmap(MATRIX_PATH, HEATMAP_SHARE_DESTINATION, normalize_by_year=True)
if __name__ == "__main__":