NF - see axes.get_label() when clicking on Edit curves lines and axes pa...

See axes.get_label() when clicking on 'Edit curves lines and axes parameters' after plt.show()

This is my first code modification and pull request for matplotlib so please let me know if I can do this better.

The modificatin follows on from the issue I raised https://github.com/matplotlib/matplotlib/issues/2593.