A minimal example that does not achieve this:
[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-color plot in the grayscale color scale. However, what I want to achieve only turns the outlines in gray.
This is just a minimalistic example, in reality, the contour graph has different data that has a different range, so two independent caxis settings are also required.
matlab plot contour
Tobias Kienzler
source share