use_style

use_style(style, reset=False)[source]

Wrapper around matplotlib.style.use() that allows setting rcParams['savefig.directory'] (default: '~') via style sheet.

Parameters:
  • style (str, dict, path-like or list) – A style specification as described in matplotlib.style.use().

  • reset (bool, default False) – Restore the rc params from matplotlib’s internal default style before applying the specified style.