mirror of
https://codeberg.org/JasterV/Color-Plotter.git
synced 2026-04-26 18:10:05 +00:00
a little change
This commit is contained in:
parent
2c521433d3
commit
f7b9f7f4d3
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ def plot_closest(ax, colors, to):
|
|||
distances = closest(colors, to, n=len(colors)//2)
|
||||
max_distance = max(distances, key=lambda x: x[1])[1]
|
||||
sizes = np.array(
|
||||
list(map(lambda x: (math.log2(max_distance) - math.log2(x[1] + 1))*100, distances)))
|
||||
list(map(lambda x: (math.log2(max_distance + 1) - math.log2(x[1] + 1))*100, distances)))
|
||||
rgb_values = list(map(lambda x: x[0], distances))
|
||||
plot_data(ax, rgb_values, np.array(rgb_values), sizes)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue