How can I format a float using matplotlib's LaTeX formatter?
With old stype formatting:
print r'$%s \times 10^{%s}$' % tuple('3.5e+20'.split('e+'))
with new format:
print r'${} \times 10^{{{}}}$'.format(*'3.5e+20'.split('e+'))
You can do something like:
ax.set_title( "${0} \\times 10^{{{1}}}$".format('3.5','+20'))
in the old style:
ax.set_title( "$%s \\times 10^{%s}$" % ('3.5','+20'))