# How to reverse COLORMAP?

*From*: Kldysd <ieaggie2002@xxxxxxxxx>*Date*: Tue, 25 Oct 2005 15:41:37 -0400

Hi, Matlab users

I am going to plot a graph using function Colormap and Colorbar.

Suppose I have a square in 2D space,i.e.,-1 <x <1 and

-1<y<1, where 100 points are evenly distributed. That is, 10

points along one side.

Now I have assigned scalar values to these 100 points from 0 to 1.

And I want to plot these values along the above square such that the

large value corresponds to color Black and small value corresponds to

color White.

However, when I tried to plot it using Colormap(gray) and Colorbar,

the output figure is plotted with black corresponding to smallest

value.

In order to make the plot look better, I need to reverse the color of

my graph.

So how to control or change the setting of function Colormap?

Thanks,

Fred

.

**Follow-Ups**:**Re: How to reverse COLORMAP?***From:*PB

- Prev by Date:
**Re: cftool save/export** - Next by Date:
**Re: How to reverse COLORMAP?** - Previous by thread:
**linux system freeze on matlab startup** - Next by thread:
**Re: How to reverse COLORMAP?** - Index(es):