Open eddienko opened 4 years ago
The hv.HSV class uses the following to convert the HSV array to RGB:
hsv_to_rgb = np.vectorize(colorsys.hsv_to_rgb)
This is very slow. I would suggest to change this to matplotlib.colors.hsv_to_rgb which operates on arrays.
matplotlib.colors.hsv_to_rgb
Technically we don't have a hard dependency on matplotlib but we can certainly use it if it's available.
The hv.HSV class uses the following to convert the HSV array to RGB:
This is very slow. I would suggest to change this to
matplotlib.colors.hsv_to_rgb
which operates on arrays.