transparency does not work
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi everybody, I want to change transparency of facecolor of a saved figure. But It does not work and when I decrease the facealpha in GUI , it just changes the color of surface. I use matlab 2017a .
Mojtaba
1 comentario
musaozt
el 28 de Sept. de 2018
Editada: musaozt
el 28 de Sept. de 2018
I am having a similar problem which might be related to this. I can successfully get transparency and save the figure programatically. Yet when I open the figure again, the transparency is gone! The reason you are losing it might be due to re-opening the figures.
Note:I use R2018b
Respuestas (1)
John D'Errico
el 3 de Jun. de 2017
But transparency does work. So it would seem you must be doing something wrong. Show an example where it fails.
For example:
surf(rand(3))

As you can see, fully opaque for now. I saved save the figure, then I open it as:
open untitled.fig
H = get(gca,'Children');
set(H,'FaceAlpha',.3)

Now transparent. No problem. Of course, I cannot guess what you did wrong.
1 comentario
Mojtaba Mirakhorlo
el 7 de Jun. de 2017
Editada: Walter Roberson
el 7 de Jun. de 2017
Ver también
Categorías
Más información sobre Graphics Object Properties 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!