-
Notifications
You must be signed in to change notification settings - Fork 44
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
Generate seed for distinguishable_colors #18
Comments
Yeah, it's there. Just pre-populate the seed input with the colors you don't want it to pick. |
Is there an algorithmic equivalent to: "background color is dark, so pick 10 distiguishable colors that are light", or can you somehow weight the importance of the difference between colors? i.e. I want a new color that is really different than the first color, but only a little different from the rest. |
Probably the way to do that would be to extend |
Ok thanks @dcjones. Assuming the weighted version isn't already implemented, I'll add it to my list. |
It’s interesting that distinguishable colors produces two blue colors On 18.09.2015 18:26, Steven G. Johnson wrote:
|
Using
This is pretty good, but there are some colors which are way too close to the background. I'll look into a weighted algorithm. Thanks for the help. |
You may also want to try the old algorithm in |
Hmm. It's not very clear, I agree. Suggests it's not a major bug, however (which is a bit of a relief), unless the bug is in the new |
They don't match exactly, but they're very close. Color.jl:
Colors.jl:
|
So I think I may have a bug in my subplot code... the colors generated by
The original version: The adjusted version: |
Nice! |
As part of Plots, I let the user specify both a background color and series colors. Defaults are
colorant"white"
for the background and ':auto' for the series colors. Right now for:auto
I choose from this pre-generated list:However it would be ideal if those colors could be chosen on-the-fly, to be distiguishable both from the background color and other previous colors (i.e. not a hardcoded 20-length vector). This way if I choose a black background, I don't plot a black line as the default.
Does this exist within Colors? I feel like the pieces are there, I'm just not sure the right way to access them.
The text was updated successfully, but these errors were encountered: