How to combine two different colormaps into one

yhchang96
Tue, 20 Sep 2022 17:29:26 +0000
Visualization

I come across the following colorbar somewhere and would like to implement something similar for my heatmap plot in CairoMakie:

So suppose I want ColorSchemes.viridis from -5 to -2, and then ColorSchemes.Greys_3 from -2 to 0, how should I combine the two?

2 posts - 2 participants