Borrar filtros
Borrar filtros

Update candle plot with additional candle

7 visualizaciones (últimos 30 días)
Ali Komai
Ali Komai el 1 de En. de 2021
Editada: Mario Malic el 2 de En. de 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.

Respuesta aceptada

Mario Malic
Mario Malic el 1 de En. de 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 comentarios
Ali Komai
Ali Komai el 2 de En. de 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 el 2 de En. de 2021
Editada: Mario Malic el 2 de En. de 2021
You're welcome. You can accept my answer on the blue button, thanks in advance.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Discrete Data Plots en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by