How can I center the ColorBrewer colors around 0?
22 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
dila suay
el 24 de Feb. de 2022
Comentada: dila suay
el 25 de Feb. de 2022
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 comentarios
Respuesta aceptada
DGM
el 25 de Feb. de 2022
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])
Más respuestas (0)
Ver también
Categorías
Más información sobre Red en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!