colors.rgb_to_hsv does not work properly with array of int dtype #1984

Merged
merged 1 commit into from May 8, 2013

Projects

None yet

3 participants

@dlax
dlax commented May 7, 2013

This is because out is defined as np.zeros_like(arr). Perhaps, float dtype should be enforced since the result is likely to be float.

@mdboom
Member
mdboom commented May 7, 2013

@dlax: Does the attached patch fix your issue?

@dlax
dlax commented May 7, 2013

Michael Droettboom a écrit :

@dlax: Does the attached patch fix your issue?

I guess so. Thanks.

@pelson pelson merged commit 4fd36da into matplotlib:master May 8, 2013

1 check failed

Details default The Travis build could not complete due to an error
@mdboom mdboom deleted the mdboom:rgb_to_hsv branch Aug 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment