Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



overlay lines on surface plot
Posted:
Jun 15, 2010 10:37 AM


I'm having trouble overlaying some other lines on a surface plot. The lines are black, and the surface plot has various colors (hsv). The black lines overlay well on most of the colors but get totally washed out on the red colors. It's also a problem with the text that I add to the plot. The text also doesn't show up on the red at all, or just bits of the text show up. I've included a bit of the code below, if it helps.
Also, at someone's suggestion I tried a plot3 and gave my new lines some z variable to get them up above the surf, but it didn't look any different.
surf(x, y, rmatrix ); % Plot surface shading interp ; colormap(hsv) ; axis([7 7 7 7]); axis image; caxis([3 0]); % restrict the color range text(5.7,0.2,'\fontsize{12}\bf\theta = 0\circ'); hold all; plot(x2, y2, 'k','LineWidth',1 );
So, in essence, I just want my black lines to not get washed out, or bring them to the front. Any help would be appreciated. And the more details the better, as I'm not a matlab wizard. Thanks very much!!



