mlresearch.utils.set_matplotlib_style

mlresearch.utils.set_matplotlib_style(font_size=8, use_latex=True, **rcparams)[source]

Load LaTeX-style configurations for Matplotlib Visualizations. You may pass additional parameters to the rcParams as keyworded arguments.

Parameters:
font_sizeint, default=8

Desired default font size displayed in visualizations. axes.labelsize and font.size will take 1.25x the size passed in font_size, whereas legend.fontsize, xtick.labelsize and ytick.labelsize will take the value passed in this parameter.

use_latexbool, default=True

Whether to use Latex to render visualizations. If True and a Latex installation is found in the system, the text will be rendered using Latex and math mode can be used. If True and no Latex installation is found, text.usetex will be set to False and an issue is raised. If False, text.usetex will be set to False.

Returns:
NoneNoneType