Thanks to visit codestin.com Credit goes to github.com
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 b009b63 commit d834f53Copy full SHA for d834f53
1 file changed
lib/matplotlib/colors.py
@@ -1221,7 +1221,7 @@ def rgb_to_hsv(arr):
1221
convert rgb values in a numpy array to hsv values
1222
input and output arrays should have shape (M,N,3)
1223
"""
1224
- out = np.zeros_like(arr)
+ out = np.zeros(arr.shape, dtype=np.float)
1225
arr_max = arr.max(-1)
1226
ipos = arr_max > 0
1227
delta = arr.ptp(-1)
0 commit comments