フィルターのクリア

How can I center the ColorBrewer colors around 0?

30 ビュー (過去 30 日間)
dila suay
dila suay 2022 年 2 月 24 日
コメント済み: dila suay 2022 年 2 月 25 日
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

採用された回答

DGM
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])
  1 件のコメント
dila suay
dila suay 2022 年 2 月 25 日
Thank you so much !

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRed についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by