We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a59c4e commit b2cd457Copy full SHA for b2cd457
backtesting/_plotting.py
@@ -90,7 +90,7 @@ def colorgen():
90
def lightness(color, lightness=.94):
91
rgb = np.array([color.r, color.g, color.b]) / 255
92
h, _, s = rgb_to_hls(*rgb)
93
- rgb = np.array(hls_to_rgb(h, lightness, s)) * 255.
+ rgb = (np.array(hls_to_rgb(h, lightness, s)) * 255).astype(int)
94
return RGB(*rgb)
95
96
0 commit comments