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!