I would like to define a transparent color within the color map how do I do that?
The reason I need this is that I have a multiple layers in my axes
(produced both by imagesc
and plot
). I know I could simply first use imagesc
and then plot
but I want to draw the lines behind non-zero values of the imagesc
representation.
To color the zeros white I use
jet = colormap('jet');
jet(1:2,:) = 1;
colormap(jet);
Now I would like to make white transparent.