1
etude_lego_jurassic_world/scripts/plot_part_rarity.py

20 lines
547 B
Python

"""Trace le diagramme des pièces rares pour l'étape 34."""
from pathlib import Path
from lib.plots.part_rarity import plot_part_rarity
PART_RARITY_TOP_PATH = Path("data/intermediate/part_rarity_exclusive.csv")
DESTINATION_PATH = Path("figures/step34/part_rarity.png")
RESOURCES_DIR = Path("figures/rebrickable")
def main() -> None:
"""Charge le top des pièces rares et produit le graphique illustré."""
plot_part_rarity(PART_RARITY_TOP_PATH, DESTINATION_PATH, resources_dir=RESOURCES_DIR)
if __name__ == "__main__":
main()