Update candle plot with additional candle
조회 수: 1 (최근 30일)
이전 댓글 표시
Is it somehow possible to update an existing candle-plot without redrawing the whole chart?
Meaning I want to add a candle when new data has arrived. Everytime redrawing the whole chart is rather slow.
댓글 수: 0
채택된 답변
Mario Malic
2021년 1월 1일
If you save the handle to the plot, you can access its Data property
h = candle(ax, someData)
h.Data(end+1) = [1 2 3 4];
댓글 수: 6
Mario Malic
2021년 1월 2일
편집: Mario Malic
2021년 1월 2일
You're welcome. You can accept my answer on the blue button, thanks in advance.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Discrete Data Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!