필터 지우기
필터 지우기

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])

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Red에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by