From 7fa0cc675c5e2495454fa3f24e4e41029223372e Mon Sep 17 00:00:00 2001 From: Louis Date: Fri, 16 Jun 2023 14:08:03 +0200 Subject: [PATCH] colors list on 01 test --- tests/01_cluster_splitter.py | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/tests/01_cluster_splitter.py b/tests/01_cluster_splitter.py index e7353b8..c686b5b 100644 --- a/tests/01_cluster_splitter.py +++ b/tests/01_cluster_splitter.py @@ -9,7 +9,28 @@ def generate_cities(nb, max_coords=1000): def plot_clusters(cities, clusters): # Création d'une liste de couleurs pour les différents clusters - colors = ['b', 'g', 'r', 'c', 'm', 'y', 'k'] + colors = [ + '#1f77b4', # Bleu moyen + '#ff7f0e', # Orange + '#2ca02c', # Vert + '#d62728', # Rouge + '#9467bd', # Violet + '#8c564b', # Marron + '#e377c2', # Rose + '#7f7f7f', # Gris + '#bcbd22', # Vert olive + '#17becf', # Turquoise + '#1b9e77', # Vert Teal + '#d95f02', # Orange foncé + '#7570b3', # Violet moyen + '#e7298a', # Fuchsia + '#66a61e', # Vert pomme + '#e6ab02', # Jaune or + '#a6761d', # Bronze + '#666666', # Gris foncé + '#f781bf', # Rose clair + '#999999', # Gris moyen +] # Création d'un nouveau graphique plt.figure() @@ -35,9 +56,9 @@ def plot_clusters(cities, clusters): plt.show() -nb_ville = 100 +nb_ville = 1000 max_coords = 1000 -nb_truck = 5 +nb_truck = 20 # Define the coordinates of the cities # And set depot at the first city in the middle of the map