stochkin.style¶
Publication-quality Matplotlib style configuration.
Publication-quality Matplotlib style for stochkin.
The defaults reproduce the look-and-feel of the FES_2D.ipynb analysis notebook (Arial font, inward ticks, 300 dpi, single-column figure width, …). Two entry-points are provided:
set_publication_style()— apply the style globally.publication_style()— context manager that restores the previous rcParams on exit.
Quick start:
import stochkin as sk
sk.set_publication_style() # global
# or
with sk.publication_style(): # scoped
fig, ax = plt.subplots()
...