필터 지우기
필터 지우기

Transparent and Multi-Color 3D-Surfaces

조회 수: 27 (최근 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 CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by