From: Chad Wangsvick on
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!!
From: Chad Wangsvick on
"Chad Wangsvick" <cwangsvi(a)ball.com> wrote in message <hv836g$7tq$1(a)fred.mathworks.com>...
> 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!!

__________________________________________________________
***Ok, I had some success here, finally. I found that:
1) The plot3 command is the right one to use to add/overlay lines on top of my surf plot. However, it should come BEFORE the surf command, or you can't see any of those lines.
2) The z value I had picked was too small, and hence the black lines were getting overwritten sometimes. But if I increase the z value to something really large, the lines all look fine.
3) The text solution is similar. I used a text for a "3-D" location (x,y,z,'text'), and gave the z value a big #. This also worked fine.

So, I guess I'm done. Maybe my ramblings will help the next person.
 | 
Pages: 1
Prev: builddocsearchdb question
Next: ftp proxy server