-
Notifications
You must be signed in to change notification settings - Fork 51
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
Husl palette equivalent #876
Comments
Have you tried "hue" scales? |
I tried it after your suggestion. They use the same principle but somehow with the same h,c,l values resulting palettes are very different. |
Here is the R's ggplot default. Obviously, seaborn and ggplot produce very similar colors. But, lets-plot Difference might be scale_hue documentation says " Qualitative color scale with evenly spaced hues for color aesthetic." While husl_palette says "This function is similar to hls_palette(), but it uses a nonlinear color space that is more perceptually uniform." |
You are right, there is significant difference in colors. Likely this is because lets-plot |
I tried to find the default color palette of R's ggplot (husl_palette in seaborn) in lets-plot but I couldn't. It is a great palette for categorical data. So, I think it would be a great addition to lets-plot.
Here is the link to the seaborn one: https://seaborn.pydata.org/generated/seaborn.husl_palette.html
And this to the R's ggplot: https://scales.r-lib.org/reference/hue_pal.html
FYI, I already tried following existing palettes.
and the viridis ones,
viridis = ["A","B","C","D","E","turbo","twilight"]
and none of them looks like ggplot2's default palette.
The text was updated successfully, but these errors were encountered: