title: Accessing Matplotlib Text Object Label Text
body: <p>Attempting to access the length of a matplotlib axis label with this code:</p>
  
  <pre><code>    for label in ax.xaxis.get_ticklabels()[1::2]:
          print(len(label))
  </code></pre>
  
  <p>However I am getting an error that the object does not have a length attribute. <code>print(label[2])</code> also errors out with a similar error. </p>