Hi,
I am trying to plot a contour plot over an imagesc() plot.
I have the following code:
figure,subplot(1,3,1);xVal = 5;[xSlVal,xSlice] = min(abs(xVal - xGrid2(1,:,1)));norm_jet_xVeloc = velocityMag(:,xSlice,:)./max(max(max(velocityMag)));veloc_mag_conotur = velocityMag(:,xSlice,:)./u;imagesc(squeeze(zGrid2(:,1,1)),squeeze(yGrid2(1,1,:)),squeeze(norm_jet_xVeloc));hold onC = contour(squeeze(zGrid2(:,1,11)),squeeze(yGrid2(1,1,:)),squeeze(veloc_mag_conotur));caxis([-0.5 0.5]);colormap('gray');set(gca,'YDir','normal');pbaspect([6 40 1]);xlim([ -3 3]);ylim([ 0 40]);xlabel('z (mm)');ylabel('y (mm)');
I think that it is working however I can't see the contour lines over the imagesc() magnitude plot. Is there another way to plot contour for a different color?
Thanks for your help.
Best Answer