don't like too much to self-advertise so often, but are you aware that function pixmapl() of toolbox ENRICO does exactly this? Rectangles of the exact color, colorbar. Another (even easier) possibility should be to use plot3d1() with view from the direct top, if I don't err. Enrico