I am getting a ValueError: could not convert string to float
when converting tick label values into numeric types.
According to the Text documentation though, a string should be returned.
MVP
fig, ax = plt.subplots()
ax.plot( range( 5 ), range( 5 ) )
for lbl in ax.get_xticklabels():
float( lbl.get_text() )