Effacer les filtres
Effacer les filtres

How to change my color map

2 vues (au cours des 30 derniers jours)
Nurul Ain Basirah Zakaria
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.

Réponse acceptée

Ameer Hamza
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
Nurul Ain Basirah Zakaria
thank you very much sir! more to learn from you!
Ameer Hamza
Ameer Hamza le 9 Nov 2020
I am glad to be of help!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Blue dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by