custom alpha-data in surface plot
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I am plotting multiple surfaces in one figure. Now I want to make the areas of the plot close to zero a transparency-gradient. For example
if z(i,j) >= 0 && z(i,j) <= 0.1
transparancy(i,j) = 1-z(i,j)/0.1;
else
transparancy(i,j) = 0;
end
I tried using the 'alpha' function and the colormap method but didn't succeed. Can anybody help me on my way?
0 Commenti
Risposte (1)
Walter Roberson
il 18 Set 2013
Do not use the alpha function: use the AlphaData property of the surface object.
surf(z, 'AlphaData', transparancy)
Vedere anche
Categorie
Scopri di più su Lighting, Transparency, and Shading in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!