apply_style

Contents

apply_style#

class braintools.visualize.apply_style(style_name, **kwargs)#

Apply predefined style by name.

Parameters:
  • style_name (str) – Name of style: ‘neural’, ‘publication’, ‘dark’, ‘colorblind’.

  • **kwargs – Additional style parameters forwarded to the underlying style function.

Returns:

ctx – A context manager. The style is applied immediately; using the return value in a with block restores the previous rcParams on exit.

Return type:

_StyleContext

Raises:

ValueError – If style_name is not recognized.