I am trying to add a simple text us ax.text() inside a plot, but when I run the code, I can see that the text does not appear.
lvl1 = price_max - 0.236 * delta
lvl2 = price_max - 0.382 * delta
fig, ax = plt.subplots()
candlestick_ohlc(ax, ohlc.values, width = 0.6,
colorup='green', colordown='red', alpha=0.8)
ax.axhspan(lvl1, price_min, alpha=0.4, color = 'lightsalmon')
ax.text(lvl1, lvl1, '23.6')
plt.show()
dfthat you build (with hopefully no more than a couple lines of code, e.g. usingnp.randomor similar), or load from some public place (e.g.from sklearn.datasets import load_iris)