ThemeManager

Simple manager class for plugging into themes in a semi-background agnostic way

extra_themes: dict

 

__init__(self, *theme_names, backend=<Backends.MPL: 'matplotlib'>, graphics_styles=None, **extra_styles): 

 

from_spec(theme): 

 

__enter__(self): 

 

__exit__(self, exc_type, exc_val, exc_tb): 

 

@property
theme(self): 

 

add_theme(theme_name, *base_theme, **extra_styles): 

Adds a theme to the extra themes dict. At some future date we’ll want to make it so that this does a level of validation, too.

  • theme_name: Any
  • base_theme: Any
  • extra_styles: Any
  • :returns: _

 

resolve_theme(theme_name, *base_themes, **extra_styles): 

Resolves a theme so that it only uses strings for built-in styles

  • :returns: _

 

validate_theme(self, theme_names, theme_styless): 

 

@property
backend_themes(self): 

 

@property
theme_names(self): 

Feedback

Examples

Templates

Documentation