I want to label and apply shading to my CONTOUR plot. When I execute the following commands in MATLAB 7.1 (R14SP3), my labels remain, but my contour lines disappear.
[X,Y] = meshgrid(-2:.2:2,-2:.2:3);Z = X.*exp(-X.^2-Y.^2);pcolor(X,Y,Z);caxis([-2 3]);hold on[C,h] = contour(X,Y,Z,'k');clabel(C,h,'FontSize',8,'color','k');shading interp
Best Answer