import distinctipy
import numpy as np
colors = distinctipy.get_colors(50)
np.set_printoptions(precision=3,suppress=True)
colors = np.array(colors)
print(repr(colors))
array([[0. , 1. , 0. ],
[0.891, 0.002, 0.944],
[0.042, 0.607, 0.9 ],
[1. , 0.5 , 0. ],
[0. , 0. , 1. ],
[0.556, 0.809, 0.435],
[0.429, 0.242, 0.526],
[0.971, 0.521, 0.741],
[0.023, 0.511, 0.154],
[0.799, 0.024, 0.068],
[1. , 1. , 0. ],
[0.06 , 0.986, 0.632],
[0.472, 0.941, 0.986],
[0.516, 0.373, 0.006],
[0. , 0. , 0.5 ],
[0.582, 0.29 , 0.998],
[0.5 , 1. , 0. ],
[0.897, 0.21 , 0.497],
[0.997, 0.777, 0.391],
[0.193, 0.624, 0.501],
[0.001, 0.271, 0.765],
[0.501, 0.613, 0.87 ],
[0.388, 0.055, 0.186],
[0. , 1. , 1. ],
[0.631, 0.704, 0.047],
[0.375, 0.001, 0.767],
[0.632, 0.468, 0.359],
[0.195, 0.86 , 0.279],
[0.711, 0.999, 0.68 ],
[0.102, 0.255, 0.355],
[0.794, 0.758, 0.829],
[0.13 , 0.739, 0.003],
[0.62 , 0.016, 0.526],
[0.988, 0.296, 1. ],
[0.051, 0.273, 0.005],
[0.257, 0.186, 0.968],
[0.665, 0.442, 0.692],
[0.679, 0.239, 0.248],
[0.974, 0.442, 0.375],
[0.35 , 0.595, 0.163],
[0.257, 0.768, 0.737],
[0.946, 0.268, 0.137],
[0.303, 0.425, 0.897],
[0.798, 0.988, 0.335],
[0.992, 0.912, 0.667],
[0.557, 0.046, 1. ],
[0.391, 0.996, 0.571],
[0.987, 0.764, 0.008],
[1. , 0. , 0.5 ],
[0.766, 0.491, 0.979]])
标签:Python,0.5,50,colors,distinctipy,np,区分度
From: https://www.cnblogs.com/zxyfrank/p/16628838.html