I\'m drawing a graph with some lines using matplotlib and I want to display the final y value next to where each line ends on the right hand side like this:
pyplot.text(x, y, string, fontdict=None, withdash=False, **kwargs)
Option 2 - Use a second axes:
second_axes = pyplot.twinx() # create the second axes, sharing x-axis
second_axis.set_yticks([0.2,0.4]) # list of your y values
pyplot.show() # update the figure