Skip to content
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

Color gradient along horizontal axis rather than the vertical axis #70

Open
flehner opened this issue Jan 10, 2024 · 5 comments
Open

Color gradient along horizontal axis rather than the vertical axis #70

flehner opened this issue Jan 10, 2024 · 5 comments

Comments

@flehner
Copy link

flehner commented Jan 10, 2024

It seems joypy was used to create this prominent figure copied below: https://ichef.bbci.co.uk/news/1536/cpsprodpb/1216F/production/_132259047_global_temp_delta_1991_2020avg_multiple_ridges_v2-2x-nc.png.webp

In it, the colormap gradient runs along the horizontal axis of each individual filled KDE plot, rather than along the vertical axis which is what happens by default when you pass a colormap into joyplot. How can you achieve this with joypy.joyplot?

image

@officialankan
Copy link

this library uses matplotlib's fill_between, I guess we would have to switch to imshow, or draw an unreasonable amount of fill_between and cycle through a colormap

wonder route BBC took? :)

@flehner
Copy link
Author

flehner commented Jan 11, 2024

I realized since that it's also possible that they used R's ggridges, in which it's easy to implement such horizontal color gradients.

@leotac
Copy link
Owner

leotac commented Jan 12, 2024 via email

@yangyxt
Copy link

yangyxt commented Mar 1, 2024

Is there any updates ? Can we achieve horizontal gradient colors ? Its super important. Thanks!

@flehner
Copy link
Author

flehner commented Mar 1, 2024

I admit I did not pursue this further since I found the R solution mentioned above.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants