differt.plotting.update_defaults

Contents

differt.plotting.update_defaults#

update_defaults(backend=None, **kwargs)[source]#

Update default backend and keyword arguments for future plotting utilities.

Like set_defaults, but it merges the provided keyword arguments with the existing defaults. Context managers, such as use, use this to temporarily change the defaults without losing previous values, which allows for the nesting of multiple context managers.

Parameters:
  • backend (str | None) – The name of the backend to be passed to get_backend.

  • kwargs (Any) – Keyword arguments that will be passed to the corresponding process_*_kwargs function, and plot utilities.

Return type:

Literal['vispy', 'matplotlib', 'plotly']

Returns:

The name of the (new) default backend.