How can I make custom color scales?

Is it possible to make custom color scales instead of using the built-in ones?

I would like to make a custom color scale to use in my plots (scatter plots generally I think) in which I can set the colors. For example blue for negative numbers , red for positive numbers and… (I am still thinking what color would be appropriate for the transition at 0).

An example of this used in a simple plot would help me a lot. Thanks!

1 Like

I found the solution here Continuous color scales and color bars in Python

1 Like