colour.plotting.override_style#
- colour.plotting.override_style(**kwargs: Any) Callable[source]#
Decorate a function to override Matplotlib style.
- Parameters:
kwargs (Any) – Keywords arguments for Matplotlib style configuration.
- Returns:
Decorated function with overridden Matplotlib style.
- Return type:
Examples
>>> @override_style(**{"text.color": "red"}) ... def f(*args, **kwargs): ... plt.text(0.5, 0.5, "This is a text!") ... plt.show() >>> f()