I am trying to add some text to a figure that I would like to align with thexlabel
of the axes. I want to find the coordinates of thexlabel
, but the functionax.get_xlabel()
only returns the string displayed in the label.
How can I get access to thexlabel
object (which I assume is just an instance of text
) to find its coordinates, or is there some other means of obtaining them?