How can I center the ColorBrewer colors around 0?
23 次查看(过去 30 天)
显示 更早的评论
Hello, I am using cbrewer for my colormap. However the value 0 is not exactly white (attached jpg image). I have played around with the n, but nothing seems to change.
n=256
colormap(cbrewer2('RdBu',n));
How can I make the 0 value true white?
Thank you
0 个评论
采纳的回答
DGM
2022-2-25
This doesn't have anything to do with the particular colormap. This has to do with the fact that the colorbar limits are not centered on zero.
Try:
caxis([-8 8])
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Red 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!