df =
date Close Bullish
2010-04-07 2.02 0
2010-04-08 2.03 0
2010-04-09 2.05 1
2010-04-12 2.16 1
2010-04-13 2.32 1
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot(df.Close, '-')
ax.annotate('Bullish', xy= , xytext=(1, 1.),
arrowprops=dict(facecolor='black', shrink=),
)
So I'm plotting the closing price of a stock, and I want to annotate the line graph with the word 'Bullish', wherever there is a 1 value in the 'Bullish' column.
I'm not too familiar with annotations so I'm not getting too far.
Thanks.