Is it possible to use (new style) python string formatting with matplotlib's figure.text() command?
I attempt to create 2 columns of data as text (where they are meant to be aligned neatly)
import matplotlib.pyplot as plt
txt = '{0:50} {1:.4e}'.format('Row1:', 0.1542457) + '\n' + \
'{0:50} {1:.4e}'.format('Row2:', 0.00145744) + '\n' + \
'{0:50} {1:.4e}'.format('Long name for this row):', 0.00146655744) + '\n' + \
'{0:50} {1}'.format('medium size name):', 'some text')
fig = plt.figure()
ax1 = fig.add_axes((0.1, 0.3, 0.8, 0.65))
ax1.plot(range(10),range(10))
fig.text(0.17, 0.07,txt)
plt.show()
which look nice when I print the txt variable to the screen:

but is not aligned in my plot


