DIego
If you display with cmap=hsv1 and legend=1 on an ximage, you will see a colo(u)r bar that ranges from red at large negative through green at zero to blue at large positive values.
In psimage, the equivalent will be an hls color definition rather than an rgb color definition, as the intermediate colours can be interpolated by hue, saturation and intensity, rather than simple RGB values.
Try:
bhls=0.666666,.5,1 blue
ghls=.3333,.5,1 green
whls=0,.5,1 red
It seems to work.
The HLS system gives flexibility to roll through larger ranges of colour easily. Think of a colour wheel and you will be able to do most things.
Hue values are from red(0) through .3333 (green) to 0.666 (blue) to 1 (red again).
Luminance values are all 0.5 - if you set them to 1, everything will be white.
Saturation values are all 1 to give primary colours. Try 0.5 to give more pastel shades, etc, or 0 to use greyscale.
ghls=.8333,.5,1 bhls=1,.5,1 whls=0.66666,.5,1 - painful and purple
ghls=.1666666,.5,1 bhls=.33333,.5,1 whls=0,.5,1 - if you prefer Van Gogh's flowers
You can control which way around the color wheel the interpolation is done by positioning ghls on the correct side. Eg,
ghls=1,.5,1 bhls=.2,.5,1 whls=0.8,.5,1
vs
ghls=0,.5,1 bhls=.2,.5,1 whls=0.8,.5,1
One interpolates from 0.2 to 0.8, while the other starts at 0.8 and goes to 1 (which is the same as 0) and then up to 0.2
cheers
- glenn