How to update a contourf plot?
14 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Rafael Kübler
le 12 Déc 2018
Commenté : Rafael Kübler
le 13 Déc 2018
Hello,
i know, how to update a surface for example in a for-loop using:
set(hSurf, 'ZData', newZData)
set(hSurf, 'CData', newCData)
but how do i update a contourf plot? Here I quess i need somehow the contour matrix and the ZData.
Thank you for your help in advance.
1 commentaire
dpb
le 12 Déc 2018
What effect, specifically, are you after? It appears the ContourMatrix array is read-only; whether there are callbacks internal that trigger recomputation if you change the underlying data of an object I didn't explore and the documentation doesn't explicitly say...you might have to delve much deeper into the bowels depending upon just what you're trying to do.
Réponse acceptée
Cris LaPierre
le 12 Déc 2018
Similarly
[~,hc] = contourf(Z);
hc.ZData = newZdata;
I don't see a CData property for contourf
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Purple 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!