contour lines obscured on a surface.
Show older comments
I'm plotting a surface - this seems to work fine. I get the colours I expect and the shading looks ok.
I've added contours to show isolines. Except as you can see in the image some of the text is obscured by the shading seemingly. It makes the contour lines hard to read and overall makes the plot look a bit rubbish!
Code below, variable names changed to obscure IP:
levels = [0:1:15]
figure(1);
colormap(jet)
str=sprintf('My title');
title(str);
hold on;
grid on;
surf(X,Y,Z)
shading interp
[C,h] = contour3(X,Y,Z,'k','LineWidth',1);
clabel(C,h,'color','k','labelspacing',60);
colorbar
Accepted Answer
More Answers (0)
Categories
Find more on Contour Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!