How to change my color map

2 Ansichten (letzte 30 Tage)
Nurul Ain Basirah Zakaria
Nurul Ain Basirah Zakaria am 9 Nov. 2020
Kommentiert: Ameer Hamza am 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.

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by