Clear Filters
Clear Filters

How to change my color map

2 views (last 30 days)
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.

Accepted Answer

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

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!