"""Typeset figure text and mathematics in Computer Modern with LaTeX.""" from matplotlib import rcParams def configure(): rcParams.update({ "font.family": "serif", "font.serif": ["Computer Modern Roman"], "text.usetex": True, "text.latex.preamble": r"\usepackage[T1]{fontenc}\usepackage{amsmath,amssymb}", })