calamari.style.context#

calamari.style.context(spec, **kwargs)#

Apply a journal style inside a with block only.

The right tool in a notebook or a script that also makes screen figures: rcParams are restored on exit, however the block ends. Keyword arguments are those of rc().

>>> with calamari.style.context("prb", width="double"):
...     fig, axes = plt.subplots(1, 2)
Return type:

Iterator[None]