Effacer les filtres
Effacer les filtres

Update candle plot with additional candle

2 vues (au cours des 30 derniers jours)
Ali Komai
Ali Komai le 1 Jan 2021
Modifié(e) : Mario Malic le 2 Jan 2021
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.

Réponse acceptée

Mario Malic
Mario Malic le 1 Jan 2021
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 commentaires
Ali Komai
Ali Komai le 2 Jan 2021
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 le 2 Jan 2021
Modifié(e) : Mario Malic le 2 Jan 2021
You're welcome. You can accept my answer on the blue button, thanks in advance.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Discrete Data Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by