I would like to define a transparent color in a color map, how to do it?
I need this so that I have several layers in my axes (created by both imagesc and plot ). I know that I could just use imagesc first and then plot , but I want to draw lines behind the non-zero values โโof the imagesc .
To color the zeros of white, I use
jet = colormap('jet'); jet(1:2,:) = 1; colormap(jet);
Now I want to make white transparent.
magu_ source share