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.labelsizeandfont.sizewill take 1.25x the size passed infont_size, whereaslegend.fontsize,xtick.labelsizeandytick.labelsizewill take the value passed in this parameter.- use_latexbool, default=True
Whether to use Latex to render visualizations. If
Trueand a Latex installation is found in the system, the text will be rendered using Latex and math mode can be used. IfTrueand no Latex installation is found,text.usetexwill be set toFalseand an issue is raised. IfFalse,text.usetexwill be set toFalse.
- Returns:
- NoneNoneType