You are reading documentation for the unreleased version of Matplotlib. Try searching for the released version of this page instead?
Applications are open for the 2018 John Hunter Matplotlib Summer Fellowship. Apply now!
Version 2.2.2.post1766+g38476fd23
matplotlib
Fork me on GitHub

Table Of Contents

matplotlib.colors.rgb_to_hsv

matplotlib.colors.rgb_to_hsv(arr)[source]

convert float rgb values (in the range [0, 1]), in a numpy array to hsv values.

Parameters:
arr : (..., 3) array-like

All values must be in the range [0, 1]

Returns:
hsv : (..., 3) ndarray

Colors converted to hsv values in range [0, 1]

Examples using matplotlib.colors.rgb_to_hsv