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
withblock restores the previous rcParams on exit.- Return type:
_StyleContext
- Raises:
ValueError – If
style_nameis not recognized.