title: Is there a way to get the coordinates of xticklabel in matplotlib?
body: <p>this code gives a matplotlib figure</p>
  
  <pre><code>fig, ax = plt.subplots()
  </code></pre>
  
  <p>and then, this code gives the info about a xticklabel</p>
  
  <pre><code>a = list(ax.get_xticklabels())[3]
  print(a)
  </code></pre>
  
  <p>that is</p>
  
  <pre><code>Text(0.6, 0, '0.6')
  </code></pre>
  
  <p>which is a <a href="https://matplotlib.org/3.1.1/api/text_api.html#matplotlib.text.Text" rel="nofollow noreferrer">matplotlib.text.Text</a>.</p>
  
  <p><code>a.get_text()</code> gives the text value of this object.</p>
  
  <pre><code>'0.6'
  </code></pre>
  
  <p>which is a single string.</p>
  
  <p>I went through the <a href="https://matplotlib.org/3.1.1/api/text_api.html#matplotlib.text.Text" rel="nofollow noreferrer">matplotlib.text.Text</a> doc, and didn't find a way to get the coordinates of this xticklabel, (0.6, 0) in this case.</p>
  
  <p>Is there a way to do this?</p>