I have a pyplot figure in a tkinter GUI and I am trying to update candlestick_ohlc
plot from mplfinance
every second with live data.
mySubplot = myFigure.add_subplot(111)
Then running every second with new data
mySubplot.clear()
...
repeat all axis formatting
...
candlestick_ohlc(mySubplot, myData.values)
This is just very very slow to reformat my axis and redraw every candle when it is only the most recent candle that changes.
What is the most efficient way to do this?