I would need to be able to use Sgrayplot() in such a way that the color map represents a fixed range of z values, instead of accommodating to the particular extremes of z. As it works by default, the full color map is used regardless of the z range.
For instance, I have two functions, z = f(x,y) and z = g(x,y), the first one ranges from
0 to 1, the second one, from 0.5 to 0.6. Assuming that I use jet(100) as the color map, I would like to see the full range of colors in the case of f (i.e., indices between 1 and 100), but only the colors between indices 50 and 60 in the case of g. The default behavior is that both plots use the full color range, so the visual comparison is somewhat deceptive as to the real range of each function.
I can imagine several workarounds, but I wonder whether there is a direct or natural way of doing this.
Thanks,
Federico Miyara