From: Thomas on
Dear Community,

I'd like to ask a question about overlaying pcolor-plots and controlling the transparency and the coloring of each plot individually.
So, what I want to do is putting a colored pcolor-plot (using colormap hot) over a second pcolor-plot serving as background image, which should be displayed as grayscale image. Both image matrices, the signal and the background, are of the same size, but offer a quite different dynamic, i.e. the background matrix contains just integers in the range from [0 11] (labelled image objects), while the signal values range from [0 20000].
Now, every labelled image object in the background image should be assigned a different gray level (or alternatively a different color), and on top of this, the colored signal image shall be superimposed setting it fully transparent, where the background shall be visible.
Using a separate colormap and caxis-property with each plot does not work, because always the last specified is active with the resulting plot (plot1 hold on plot2 hold off).

My question now is:
Does anybody know how to assign an individual colormap and caxis property to two superimposed pcolor-plots?
Or, more generally, does anybody know how to solve the above mentioned imaging problem ?
Any helpful suggestions are highly appreciated.
Thank you.

Tom