Mathtext
Use Matplotlib's internal LaTeX parser and layout engine. For true LaTeX rendering, see the text.usetex option.

import matplotlib.pyplot as plt
fig, ax = plt.subplots
Use Matplotlib's internal LaTeX parser and layout engine. For true LaTeX rendering, see the text.usetex option.

import matplotlib.pyplot as plt
fig, ax = plt.subplots