You've already forked etude_lego_jurassic_world
Ajouter la frise des top couleurs annuelles
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
from pathlib import Path
|
||||
|
||||
from lib.plots.colors_timeline import plot_colors_heatmap, plot_translucent_share
|
||||
from lib.plots.colors_timeline import plot_top_colors_swatches
|
||||
|
||||
|
||||
TIMELINE_PATH = Path("data/intermediate/colors_timeline.csv")
|
||||
@@ -12,6 +13,7 @@ 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")
|
||||
TOP_COLORS_DESTINATION = Path("figures/step15/colors_top5_swatches.png")
|
||||
|
||||
|
||||
def main() -> None:
|
||||
@@ -20,6 +22,7 @@ def main() -> None:
|
||||
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)
|
||||
plot_top_colors_swatches(MATRIX_PATH, TOP_COLORS_DESTINATION, limit=5)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user