-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
New color blind-friendly color cycle #9255
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
New color blind-friendly color cycle #9255
Conversation
attn @mcstone to verify that the name is still ok in this case. |
It's fine
…Sent from my iPhone
On Oct 2, 2017, at 7:29 AM, Thomas A Caswell <notifications@github.com<mailto:notifications@github.com>> wrote:
attn @mcstone<https://github.com/mcstone> to verify that the name is still ok in this case.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#9255 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AF77YrVKee5lIyjviYgRuZVLFsRgtYoXks5snn_TgaJpZM4PplPo>.
|
Probably beyond the scope of this PR: ... are style sheets the only way to define color cycles? It seems a big step from the seaborn styles to defining just the color cycle. I ask because I was going to suggest an example, but I see that all the styles are plotted automagically, so I guess its not needed. OTOH, if everyone who wants a custom color cycle writes a new style, that page will get quite crowded... |
Nope, you can define all sorts of things through the prop_cycle rc param
programmatically. We are working to streamline this API, but this example
should give you a basic idea:
https://matplotlib.org/examples/color/color_cycle_demo.html
…On Mon, Oct 2, 2017 at 1:28 PM, Jody Klymak ***@***.***> wrote:
Probably beyond the scope of this PR:
... are style sheets the only way to define color cycles? It seems a big
step from the seaborn styles to defining just the color cycle.
I ask because I was going to suggest an example, but I see that all the
styles are plotted automagically, so I guess its not needed. OTOH, if
everyone who wants a custom color cycle writes a new style, that page will
get quite crowded...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#9255 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARy-PiKUAEzZmGGagsos1OTmwcS0qUbks5soR0egaJpZM4PplPo>
.
|
@WeatherGod I think I knew about that. But I mean is there somewhere in the library to define a bunch of colorcycles by name like there is to define a bunch of colormaps? i.e. something like |
Ah, I see. No, we don't have that. Partly because it has to integrate in
with the property cycle. You could have some style files that define just a
property cycle for a given color cycle, but you wouldn't be able to compose
that with any other property cycles (let's say I want to also modify
linestyles as well).
…On Mon, Oct 2, 2017 at 3:18 PM, Jody Klymak ***@***.***> wrote:
@WeatherGod <https://github.com/weathergod> I think I knew about that.
But I mean is there somewhere in the library to define a bunch of
colorcycles by name like there is to define a bunch of colormaps? i.e.
something like lib/_cc.py or lib/_colorcycles.py?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9255 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARy-KY32CURSh9KWMlCZ2DCdW9TUgeYks5soTcagaJpZM4PplPo>
.
|
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.
A couple of suggested changes to make it clear to folks that this is done via matplotlib styles.
@@ -0,0 +1,4 @@ | |||
New colorblind-friendly color cycle |
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.
Suggest "New style defining colorblind-friendly color cycle"
New colorblind-friendly color cycle | ||
=================================== | ||
|
||
A new color cycle has been added, tableau-colorblind10, to provide another option for colorblind-friendly plots. |
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.
Suggest "A new style has been adding defining a color cycle tableu_colorblind10
..."
Suggest a link to: :ref:sphx_glr_tutorials_introductory_customizing.py
(Umm, I think I referenced that correctly)
@WeatherGod Thanks! I looked more carefully at the existing files in |
@EJEP I took the liberty of making very small changes to your whats new entry. This isn't building because of a change to doc/conf.py. |
This needs a rebase on to current master to make the CircleCI build work |
There is currently only one colorblind friendly color cycle in the included style sheets. This adds another - the colorblind 10 palette from Tableau.
cb6703b
to
25ea897
Compare
I think it would be really good to get this in, so I've rebased on to master to hopefully make all the tests pass. |
PR Summary
There is only one color blind-friendly color cycle included in matplotlib at present (not counting the grayscale cycle). This pull request adds another defined from the color blind 10 cycle from Tableau. This uses more colors than the seaborn-colorblind cycle.
I assume the use of the name is fine given the discussion in this pull request: #7639
PR Checklist
Most of this