You've already forked etude_lego_jurassic_world
Ajoute les visualisations temporelles des palettes
This commit is contained in:
21
scripts/plot_colors_timeline.py
Normal file
21
scripts/plot_colors_timeline.py
Normal file
@@ -0,0 +1,21 @@
|
||||
"""Génère les visuels temporels des palettes de couleurs."""
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from lib.plots.colors_timeline import plot_colors_heatmap, plot_translucent_share
|
||||
|
||||
|
||||
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")
|
||||
|
||||
|
||||
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)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user