colors list on 01 test
This commit is contained in:
parent
43b8dab5c4
commit
7fa0cc675c
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user