style#

Utility functions for styling Matplotlib plots.

Functions

plot_with_custom_style(plotting_function)

Wrap a plotting function with a context manager to set the plot style.

style_context()

Context manager for plotting in a custom style.

data_morph.plotting.style.plot_with_custom_style(plotting_function: Callable) Callable[source]#

Wrap a plotting function with a context manager to set the plot style.

Parameters:

plotting_function (Callable) – The plotting function.

Returns:

The decorated plotting function.

Return type:

Callable

data_morph.plotting.style.style_context() Generator[None, None, None][source]#

Context manager for plotting in a custom style.