-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add method for comparing two colors #10032
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Will need a what's new entry, won't it?
…On Mon, Dec 18, 2017 at 3:14 PM, Thomas A Caswell ***@***.***> wrote:
***@***.**** approved this pull request.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#10032 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARy-NLFTC9rUD_jto6ZhCjiH5UsweUEks5tBseUgaJpZM4REpQf>
.
|
👍 @WeatherGod sorry I missed that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable; I wonder where it would be used, apart from the legend?
There might be other bits of the codebase that compare if two colors are equal? Even if there aren't I think it's a useful user function to have given then many different ways colors can be specified, and it makes it clear in our internal code when we are comparing colors for equality. Will add a what's new when I get time, or if someone wants to push one to my branch feel free. |
I think this is the first step towards a more consistent color representation at the python layer. |
Right - see #9995. It would prob make sense to have a |
Other thing to consider is how this would fold in with traitlets (don't
know where we currently stand on that.)
…On Mon, Dec 18, 2017 at 5:19 PM, Jody Klymak ***@***.***> wrote:
Right - see #9995 <#9995>.
It would prob make sense to have a color class that then did all this
automagically.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#10032 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARy-I53v7kIeDIv4Lxsu4ZKnp1ns76Yks5tBuTYgaJpZM4REpQf>
.
|
Colors in Matplotlib can come in many weird and wonderful forms; this allows two colors to be compared.