I am trying to recreate the colorbar shown below in matplotlib
The different colors are given below in RGB format
[[255, 255, 255],
[160, 160, 160],
[133, 231, 137],
[105, 191, 104],
[207, 216, 255],
[0, 0, 199],
[255, 255, 0],
[205, 0, 0]]
Where each color is the beginning and end of the obvious gradient...so the "white to gray" part of the colormap goes from [255,255,255] to [160,160,160]
For convenience, lets say the gray portion of the colorbar goes from 0 to 0.2, the green from 0.2 to 0.333 (1/3), the blue from 1/3 to 2/3, and the yellow-red from 2/3 to 1.
Thanks!