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