Minimum example that does not achieve it:
[X,Y,Z] = peaks;
figure;
pcolor(X,Y,Z);
shading flat;
hold all;
axes;
contour(X,Y,Z);
colormap gray; % this should only apply to the contour plot axes...
axis off; % ... but it doesn't
This shows both the contour plot and the pseudo colour plot in the grayscale colourmap. However, what I want to achieve is only turning the contours gray.
This is just a minimalistic example, in reality the contour plot is of different data that has a different range, so two independent caxis
settings are required as well.