easy but important question!

easy but important question!

Post by Lewis Sout » Fri, 19 Oct 2007 01:58:32


Hello world. I have a shaded surf plot through which I
would like to pass two transparent planes but I cannot
figure out how this is done. I know it involves the patch
commanded but beyond that I am stumped. Please help; your
assistance will be appreciated more than you can imagine.
Lewis
 
 
 

easy but important question!

Post by PB » Fri, 19 Oct 2007 04:18:50

Den Wed, 17 Oct 2007 16:58:32 +0000 skrev Lewis Southfork:


One way

s=peaks;
sh=surf(s);
a=get(gca);
x=[repmat(a.XLim(2)/2,1,4)]
x1=[a.XLim a.XLim(2:-1:1)]
y=[a.YLim a.YLim(2:-1:1)]
y1=[repmat(a.YLim(2)/2,1,4)]
z=[repmat(a.ZLim(1),1,2) repmat(a.ZLim(2),1,2) ]
z1= [repmat(a.ZLim(1),1,2) repmat(a.ZLim(2),1,2)]
patch(x,y,z,'y','FaceAlpha',0.3)
patch(x1,y1,z1,'y','FaceAlpha',0.3)

HTH

PB