Makie.jl: How to color a density plot according to a given colormap/colorbar

Is it possible to color densities according to a given colormap/colorbar?

@yakir12 already helped me on zulip with the “ridgeplot layout” of the densities as shown in the docs, which worked for me like below:

But I’d love to add coloring as well, like shown in the picture below :slightly_smiling_face: (I don’t care about transparency BTW)

image

(cc @jules)

1 Like

Just because I found this post while searching for ridgeplots in Makie and it came up quite high in the search results.
The answer to that question is now available in the Makie docs.
https://docs.makie.org/stable/reference/plots/density/#gradients

3 Likes