continous colour bar

Hi.

I have a set of data with a range of (say) 0 to 100. Is it possible
to get matplotlib to use the same colour for 0 and 100, so that the
colours "meet" at the ends of the color bar?

One workaround is to just manipulate the data (eg. using abs (x-50)),
but I would rather not, if possible.

Thanks, Ben

The pre-defined hsv colour map has this property - can you use that?
Otherwise, yes, it is possible to define any map you like.

Gary R

ยทยทยท

On Fri, Jul 8, 2011 at 12:55 PM, Ben Elliston <bje@...3370...> wrote:

Hi.

I have a set of data with a range of (say) 0 to 100. Is it possible
to get matplotlib to use the same colour for 0 and 100, so that the
colours "meet" at the ends of the color bar?

One workaround is to just manipulate the data (eg. using abs (x-50)),
but I would rather not, if possible.

Thanks, Ben