Set specific colors in colormap
10 views (last 30 days)
Show older comments
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
0 Comments
Accepted Answer
Mathieu NOE
on 3 Nov 2020
hello
you should look in the File Exchange section, there are plenty of code available for custom colormap
your request is already answered : https://fr.mathworks.com/matlabcentral/fileexchange/74791-redblue-colormap-generator-with-zero-as-white-or-black?s_tid=srchtitle
More Answers (0)
See Also
Categories
Find more on Color and Styling in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!