Set specific colors in colormap

Hi Everyone,
I want to set my desired colors in colormap such that all negative values of a trend are different shades of red, all positive values are different shades of blue, and the value zero is either white or gray. How do I go about that please?
Thanks

 Accepted Answer

Mathieu NOE
Mathieu NOE on 3 Nov 2020
hello
you should look in the File Exchange section, there are plenty of code available for custom colormap

More Answers (0)

Tags

Asked:

on 3 Nov 2020

Commented:

on 3 Nov 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!