blue single hue color scheme
This commit is contained in:
@@ -3604,10 +3604,12 @@ def multiflex_view(request,userid=0,
|
||||
if aantal == 1:
|
||||
groupcols = np.array([1.])
|
||||
|
||||
# rgb = [colorsys.hsv_to_rgb(float(x/100.), 1.0, 1.0) for x in groupcols]
|
||||
rgb = [colorsys.hsv_to_rgb((207-4*x)/360.,
|
||||
0.06+0.89*x,
|
||||
1-0.38*x) for x in groupcols]
|
||||
|
||||
groupcols *= 100.
|
||||
rgb = [colorsys.hsv_to_rgb(float(x/100.), 1.0, 1.0) for x in groupcols]
|
||||
rgb = [colorsys.hsv_to_rgb(0.5-0.3*float(x/100.), 0.4+0.4*float(x/100.), 1.0) for x in groupcols]
|
||||
# rgb = [colorsys.hsv_to_rgb(0.1+0.8*float(x/100.), 0.5, 0.5-0.2*float(x/100.)) for x in groupcols]
|
||||
RGB = [(int(255.*r),int(255.*g),int(255.*b)) for (r, g, b) in rgb]
|
||||
colors = ["#%02x%02x%02x" % (r, g, b) for (r, g, b) in RGB]
|
||||
df['color'] = colors
|
||||
|
||||
Reference in New Issue
Block a user