How to update a contourf plot?
조회 수: 17 (최근 30일)
이전 댓글 표시
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
dpb
2018년 12월 12일
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.
채택된 답변
Cris LaPierre
2018년 12월 12일
Similarly
[~,hc] = contourf(Z);
hc.ZData = newZdata;
I don't see a CData property for contourf
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!