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
andfont.size
will take 1.25x the size passed infont_size
, whereaslegend.fontsize
,xtick.labelsize
andytick.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. IfTrue
and no Latex installation is found,text.usetex
will be set toFalse
and an issue is raised. IfFalse
,text.usetex
will be set toFalse
.
- Returns:
- NoneNoneType