i'm trying to figure out how I can get my chart to show the latest (last) Y-axis value in the time series next to the curve line. Currently I have the below graph. I've tried using 'plt.text' but this would mean I manually enter the value rather than python automatically showing me when it generates the chart.
curve_name = 'G_H_TTF-Monthly.USD'
TTF = get_forward_curve_history(name=curve_name, start_date='2018-01-01',
end_date=date)
NBP_TTF_Q1 = NBP.loc['2020-01-01':'2020-03-31'].mean() - TTF.loc['2020-01-
01':'2020-03-31'].mean()
NBP_TTF_Q1.plot()
plt.text(6,40,'0.66')
plt.gca().legend(('NBP_TTF_Q1','Jul19','Jun/Jul18','Jun/Jul19'))
plt.grid()
plt.show()
Whereas I would expect something like this (Excuse the poor pen writing skills):