From: Rajkumar R on
Hi all,

I am using Contourf command to plot 6 different colour zones in my graph. I am not satisfied with any of the colour templates given over there. Is there a possibility to change atleast one colour (which is maximum prevalent in my graph) to white.
From: Husam Aldahiyat on
"Rajkumar R" <rrk_000(a)yahoo.co.in> wrote in message <ho7e54$ndv$1(a)fred.mathworks.com>...
> Hi all,
>
> I am using Contourf command to plot 6 different colour zones in my graph. I am not satisfied with any of the colour templates given over there. Is there a possibility to change atleast one colour (which is maximum prevalent in my graph) to white.

Use colormap(c), where c is an Nx3 matrix, with each row containing the RGB elements for the desired colour of a certain level. For example, since you want white as the maximum, you can use:

>> colormap([1,1,1;rand(5,3)])
From: Rajkumar R on
Thanks Husam...