How to set surface transparency based on value?
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
I am plotting a surface and I want to add transparancy based upon the value of z2. Namely, if z2 = max(z2), the transparency is 0 and when z2 = min(z2), the transparency is 1. How can I do this?
h=surf(x2,y2,z2);
set(h, 'EdgeColor','none', 'FaceColor','interp', 'FaceLighting','gouraud')
0 件のコメント
回答 (1 件)
SlipperyGnome
2022 年 7 月 10 日
You can go through the following related links for a better understanding of this- https://www.mathworks.com/matlabcentral/answers/30776-how-to-make-the-surface-plot-transparent
Hope it helps.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!