Matplotlib styles for scientific plotting
INFO
log statements about no available fonts due to previous release changes.science
+ no-latex
examplescience
and ieee
to use Times New Roman look-alike fontsplot-examples.py
and clean PDF outputturkish-font
language styleimport scienceplots
is needed on top of your scripts!import scienceplots
plot-example.py
notebook
:
\usepackage{amsmath, amssymb, sfmath}
--> \usepackage{amsmath} \usepackage{amssymb} \usepackage{sfmath}
pyproject.toml
file (see PEP 517/518)nature
:
latex-sans
:
std-colors
:
plt.style.use(["science", "ieeee"]). The figure will use the
"ieee"color cycle. To revert to the standard color cycle, you can use
plt.style.use(["science", "ieee", "std-colors"])``.science
:
amssymb
to LaTeX preamblegrid
:
axes.axisbelow
to Truescience
style:
ieee
style:
grid
style:
high-contrast.mplstyle
, light.mplstyle
). Taken from Paul Tol's website.muted.mplstyle
, vibrant.mplstyle
, and bright.mplstyle
.