Borrar filtros
Borrar filtros

Transparent and Multi-Color 3D-Surfaces

27 visualizaciones (últimos 30 días)
Georg Söllinger
Georg Söllinger el 10 de Sept. de 2016
Comentada: Star Strider el 12 de Sept. de 2016
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

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by