I am adding an axv line in my python plot and I would like to add text on it. I added to it correctly but the text is overlapping with the axv line. So, I would like to move it a little backward or forward. But the problem is I am dealing with dates on x-axis and I couldn't just add some integer values on the x-axis. Please see my codes below and my resulting image.
monthly_death = coup.groupby(pd.Grouper(key = "event_date", freq = "1M"))['fatalities'].sum()
ax = monthly_death.plot(kind = 'line', title = 'testing', figsize=(10, 6))
plt.axvline(x= '2021-09-01', color = 'red', ls = '--')
plt.text ('2021-09-01', 250, 'testing', rotation = 90)
plt.show()