Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

overlay contour and trisurf

119 views
Skip to first unread message

Ana

unread,
Jul 16, 2009, 9:02:02 AM7/16/09
to
I want to overlay a contour plot on top of my trisurf plot, where the trisurf plot has, say, colormap jet, and the contour is just black. However, when I try, either the whole thing goes black, or the contours are the same colour as the trisurf and so I can't see them.

Anybody know how to fix this?

This is my code:

figure(1), clf

%trisurf plot
trisurf(triS, X, Y, zeros(size(X)), PRESSURE);
view(2); shading interp; colormap jet; colorbar; set(gcf,'renderer','zbuffer')

%contour plot
[C,h] = contour(X,Y,TempxyR,v);
colormap ([0 0 0]);
clabel(C,h);

Jack

unread,
Sep 1, 2009, 11:47:02 AM9/1/09
to
See this code that someone has written. It allows for a triangular contour plot to overlay with a trisurf plot.

http://www.mathworks.com/matlabcentral/fileexchange/10408


"Ana " <blueey...@hotmail.com> wrote in message <h3n8ca$bqg$1...@fred.mathworks.com>...

0 new messages