You've already forked etude_lego_jurassic_world
Ajoute les visualisations des couleurs de têtes de minifigs et jalons
This commit is contained in:
21
scripts/plot_minifig_heads.py
Normal file
21
scripts/plot_minifig_heads.py
Normal file
@@ -0,0 +1,21 @@
|
||||
"""Visualisations des couleurs de têtes de minifigs."""
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from lib.plots.minifig_heads import plot_global_shares, plot_shares_by_year
|
||||
|
||||
|
||||
HEADS_BY_YEAR_PATH = Path("data/intermediate/minifig_heads_by_year.csv")
|
||||
MILESTONES_PATH = Path("config/milestones.csv")
|
||||
SHARES_DESTINATION = Path("figures/step16/minifig_heads_shares.png")
|
||||
GLOBAL_DESTINATION = Path("figures/step16/minifig_heads_global.png")
|
||||
|
||||
|
||||
def main() -> None:
|
||||
"""Construit les visuels des couleurs de têtes de minifigs."""
|
||||
plot_shares_by_year(HEADS_BY_YEAR_PATH, SHARES_DESTINATION, milestones_path=MILESTONES_PATH)
|
||||
plot_global_shares(HEADS_BY_YEAR_PATH, GLOBAL_DESTINATION)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user