Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
jklymak merged 3 commits intomatplotlib:masterfromdstansby:same-color
Dec 21, 2017

Conversation

dstansby
Copy link
Member

@dstansbydstansby commentedDec 17, 2017
edited
Loading

Colors in Matplotlib can come in many weird and wonderful forms; this allows two colors to be compared.

@tacaswelltacaswell added this to thev2.2 milestoneDec 18, 2017
@WeatherGod
Copy link
Member

WeatherGod commentedDec 18, 2017 via email

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> .

@tacaswell
Copy link
Member

👍@WeatherGod sorry I missed that.

Copy link
Member

@efiringefiring left a 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?

@dstansby
Copy link
MemberAuthor

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.

@tacaswell
Copy link
Member

I think this is the first step towards a more consistent color representation at the python layer.

@jklymak
Copy link
Member

Right - see#9995. It would prob make sense to have acolor class that then did all this automagically.

@WeatherGod
Copy link
Member

WeatherGod commentedDec 18, 2017 via email

Other thing to consider is how this would fold in with traitlets (don'tknow 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> .

@jklymakjklymak merged commitaf185be intomatplotlib:masterDec 21, 2017
@dstansbydstansby deleted the same-color branchDecember 21, 2017 09:18
@QuLogicQuLogic modified the milestones:needs sorting,v2.2.0Feb 12, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@efiringefiringefiring approved these changes

@tacaswelltacaswelltacaswell approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v2.2.0
Development

Successfully merging this pull request may close these issues.

6 participants
@dstansby@WeatherGod@tacaswell@jklymak@efiring@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp