scatrans.pl.set_style

Contents

scatrans.pl.set_style#

scatrans.pl.set_style(fontfamily='sans-serif', fonts=None, linewidth=1.0, labelsize=11, titlesize=12, ticksize=9, legendsize=9, dpi_preview=150, dpi_save=300, **kwargs)[source]#

Apply a clean, minimal style suitable for scientific publication figures.

Key characteristics (inspired by professional single-cell visualization libraries such as OmicVerse): - Vector-friendly output (Type 42 fonts for easy editing of PDF/SVG in

Illustrator, Affinity, etc.)

  • Minimal non-data ink (no top/right spines)

  • Consistent, readable sizes for journal figures (typically 11 pt labels)

  • White background, high contrast, no unnecessary grids

It is recommended to call this once near the beginning of an analysis script or notebook if you want package style. Plotting functions no longer call it by default (use_style=False). Pass use_style=True or use style_context() to opt in per call or per block.

If you want to limit the scope of style changes, either:
  • call scat.pl.set_style() once yourself and then pass use_style=False to individual plotting calls, or

  • use with scat.pl.style_context(…): … around blocks of code (including calls to scat.pl.* functions inside the block).

Parameters:
  • fontfamily – Control the font stack. Arial/Helvetica are preferred for journals.

  • fonts – Control the font stack. Arial/Helvetica are preferred for journals.

  • linewidth – Base width for axes, ticks and spines.

  • labelsize – Font sizes in points.

  • titlesize – Font sizes in points.

  • ticksize – Font sizes in points.

  • legendsize – Font sizes in points.

  • dpi_preview – DPI used for on-screen display vs. saved files.

  • dpi_save – DPI used for on-screen display vs. saved files.

  • **kwargs – Any additional matplotlib rcParams (will override the defaults).