The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: overlay lines on surface plot
Replies: 2   Last Post: Aug 21, 2014 8:29 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Chad Wangsvick

Posts: 3
Registered: 6/15/10
overlay lines on surface plot
Posted: Jun 15, 2010 10:37 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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!!

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.