필터 지우기
필터 지우기

Update candle plot with additional candle

조회 수: 2 (최근 30일)
Ali Komai
Ali Komai 2021년 1월 1일
편집: Mario Malic 2021년 1월 2일
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.

채택된 답변

Mario Malic
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
Ali Komai
Ali Komai 2021년 1월 2일
Ah I see, the candle is appended automatically at the end. Probably works through the included datetime. Nice!
Thank you very much!
Mario Malic
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 CenterFile Exchange에서 Discrete Data Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by