Set properties of patch doesn't work
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello,
I'm trying to plot an isosurface in AppDesigner with:
load chestVolume
mask = 1800 <= V & V <= 3200;
p = patch(isosurface(mask));
p.FaceColor = 'red';
and it works fine.
Now I want to set the BackFaceLightning on 'unlit' and FaceLightning (on something, I don't know) so I can see where the inner surface and where he outer surface of the figure is. But when I set the properties nothing changes. Does anybody know why nothing changes and how I can fix it?
8 commentaires
Jan
le 21 Déc 2020
Okay, so the is a change. But the displayed object does not change, because there is no light() object, which could influence the lighting?
Réponses (1)
Mario Malic
le 21 Déc 2020
Modifié(e) : Mario Malic
le 21 Déc 2020
After you change properties, try with drawnow.
Wrong(FaceColor, FaceAlpha, EdgeColor, LineStyle are the only properties for patch.)
8 commentaires
Walter Roberson
le 22 Déc 2020
Needs https://www.mathworks.com/help/images/download-sample-data-using-the-add-ons-explorer.html "Image Processing Toolbox Image Data"
Voir également
Catégories
En savoir plus sur Lighting, Transparency, and Shading dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!