How to change my color map

2 visualizzazioni (ultimi 30 giorni)
Nurul Ain Basirah Zakaria
Commentato: Ameer Hamza il 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.

Risposta accettata

Ameer Hamza
Ameer Hamza il 9 Nov 2020
You can flip the colormap
ax = axes();
% create the figure
pcolor(..);
ax.Colormap = flipud(ax.Colormap) % reverse the colormap
  2 Commenti
Nurul Ain Basirah Zakaria
thank you very much sir! more to learn from you!
Ameer Hamza
Ameer Hamza il 9 Nov 2020
I am glad to be of help!

Accedi per commentare.

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by