MATLAB: About contour and transparent

contour

Hi,
I am trying to plot coutour overlaying on the top of imagesc. But my result is contour blocking the imagesc. I tried to make countour transparency.
So, please show me how to make countour transparency.
Thanks.

Best Answer

thick = 0.8; %alpha value
ch = contourf(...);
patches = findobj(ch,'-property','AlphaData')
for ph = patches
set(ph,'AlphaData', thick * get(ph,'AlphaData'));
end