Transparency causes nonsmooth lines
Ältere Kommentare anzeigen
When I set transparency in the figure, the original smooth line becomes nonsmooth.
[x,y] = meshgrid(-2:.2:2);
z = x.*exp(-x.^2-y.^2);
a = gradient(z);
figure; surf(x,y,z,'AlphaData',a,'FaceAlpha','flat','FaceColor','blue');
figure; surf(x,y,z)
Akzeptierte Antwort
Weitere Antworten (1)
Indrajit Wadgaonkar
am 10 Aug. 2021
Bearbeitet: Indrajit Wadgaonkar
am 10 Aug. 2021
0 Stimmen
Did this issue get resolved? What is the solution if I need transparency as well as smooth lines?
Kategorien
Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!