How to change my color map
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Nurul Ain Basirah Zakaria
le 9 Nov 2020
Commenté : Ameer Hamza
le 9 Nov 2020
Hi. How to change my colormap?

I want to reverse the color, -2 should be the orange one. Can anyone teach me how to do it. I've google but I dont really get it.
0 commentaires
Réponse acceptée
Ameer Hamza
le 9 Nov 2020
You can flip the colormap
ax = axes();
% create the figure
pcolor(..);
ax.Colormap = flipud(ax.Colormap) % reverse the colormap
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Colormaps dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!