๐จ Themes Overview#
Swizz comes with built-in visual themes for plots, inspired by common publication styles, or dark-mode aesthetics.
Each theme controls global plot styling:
Font and font size
Gridlines
Color palette
Line thickness
Layout spacing and more
โ๏ธ How to use a theme#
Use set_style to apply a theme globally to all plots:
from swizz.plot.base import set_style
# Apply a theme
set_style("latex") # This is actually the default theme
# Optionally override specific parameters
set_style("dark_latex", font_size=20, linewidth=3)
You can override any valid matplotlib.rcParams using keyword arguments.
๐ Full list of overridable params:
matplotlib.rcParams reference
๐ผ Theme Previews#
Browse available themes below. All plots use the same data for visual consistency.