Human: How can I format a float using matplotlib's LaTeX formatter? Assistant: 
Here is some code to format float `3.5e+20`  to `$3.5 \\times 10^{20}$` and set as title of matplotlib plot `ax`

ax.set_title('$%s \\times 10^{%s}$' % ('3.5', '+20'))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.