Transparent and Multi-Color 3D-Surfaces

19 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

Star Strider
Star Strider il 10 Set 2016
This is a guess since I cannot run your code.
See if decreasing the 'EdgeAlpha' property (especially in a mesh plot) helps.
  2 Commenti
Georg Söllinger
Georg Söllinger il 12 Set 2016
Thanks again for your answer! This was the solution.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Lighting, Transparency, and Shading in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by