Transparent and Multi-Color 3D-Surfaces

20 ビュー (過去 30 日間)
Georg Söllinger
Georg Söllinger 2016 年 9 月 10 日
コメント済み: Star Strider 2016 年 9 月 12 日
Hello Community,
I've got a problem with coloring two mesh-plots. The upper one should be sort of transparent, so that the plot below is also visible. I've already tried to apply the alpha-function with a very low value, but I cannot see a significant change in the transparency of the first mesh plot.
Here is my code:
figure
hold on
s1 = mesh(radius_interp, force_interp, bow_length);
alpha(s1,0.01)
colormap(jet)
freezeColors
s2 = mesh(radius_interp, force_interp, bow_length_tape, 'FaceAlpha', 0.8);
map = [0.3, 0, 0
0.4, 0, 0
0.5, 0, 0
0.6, 0, 0
0.8, 0, 0
1.0, 0, 0];
colormap(map)
freezeColors
% Plot Axis
axis([0 200 0 500 0 70])
daspect([1 1 1])
Thanks in advance for your help! Georg

採用された回答

Star Strider
Star Strider 2016 年 9 月 10 日
This is a guess since I cannot run your code.
See if decreasing the 'EdgeAlpha' property (especially in a mesh plot) helps.
  2 件のコメント
Georg Söllinger
Georg Söllinger 2016 年 9 月 12 日
Thanks again for your answer! This was the solution.
Star Strider
Star Strider 2016 年 9 月 12 日
My pleasure!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by