scPyviewer.set_style#

scPyviewer.set_style(font_family=None, base_fontsize=None, dpi=None, style=None)[source]#

Set global matplotlib defaults for all subsequent plot_* calls.

Parameters:
  • font_family (str, optional) – Font family name, e.g. "Arial", "Helvetica", "Times New Roman".

  • base_fontsize (float, optional) – Base font size in points. Sets font.size in rcParams.

  • dpi (int, optional) – Default figure resolution (dots per inch).

  • style (str, optional) – Matplotlib style sheet, e.g. "seaborn-v0_8-whitegrid", "ggplot". Passed to matplotlib.pyplot.style.use().

Return type:

None

Examples

>>> sv.set_style(font_family="Arial", base_fontsize=11, dpi=300)