a specific colormap for filled contour plot
Mostrar comentarios más antiguos
Hi All,
I was using contourf for filled contour plotting. And I've added standard colorbar to display the color. Then I've got comments from client that they would like the contour to be plotted in a more specific way - they would like to use white for zero, and then the color should go from white to red as number gets more negative, and white to blue as the number gets more positive.
Is it something can be done in Matlab?
Thank you.
Respuestas (3)
per isakson
el 17 de Mzo. de 2014
Editada: per isakson
el 17 de Mzo. de 2014
0 votos
Yes, you can make a special colormap to accomplish that
- see colormapeditor
- there are many different colormaps in the File Exchange
- and the one you need bluewhitered by Nathan Childress
2 comentarios
Silin
el 18 de Mzo. de 2014
per isakson
el 18 de Mzo. de 2014
Try something like
redwhiteblue = flipud( bluewhitered );
Kelly Kearney
el 17 de Mzo. de 2014
0 votos
Silin
el 18 de Mzo. de 2014
0 votos
Categorías
Más información sobre Red en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!