How to change my color map
1 view (last 30 days)
Show older comments
Nurul Ain Basirah Zakaria
on 9 Nov 2020
Commented: Ameer Hamza
on 9 Nov 2020
Hi. How to change my colormap?![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/407440/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/407440/image.png)
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 Comments
Accepted Answer
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
More Answers (0)
See Also
Categories
Find more on Blue in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!