We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7c9733 commit b2acde6Copy full SHA for b2acde6
backtesting/_plotting.py
@@ -88,8 +88,7 @@ def colorgen():
88
def lightness(color, lightness=.94):
89
rgb = np.array([color.r, color.g, color.b]) / 255
90
h, _, s = rgb_to_hls(*rgb)
91
- rgb = np.array(hls_to_rgb(h, lightness, s)) * 255
92
- rgb = np.rint(rgb)
+ rgb = (np.array(hls_to_rgb(h, lightness, s)) * 255).astype(int)
93
return RGB(*rgb)
94
95
0 commit comments