colour.plotting.plot_single_function#

colour.plotting.plot_single_function(function: Callable, samples: Optional[ArrayLike] = None, log_x: Optional[int] = None, log_y: Optional[int] = None, plot_kwargs: Optional[Union[Dict, List[Dict]]] = None, **kwargs: Any) Tuple[Figure, Axes][source]#

Plot given function.

Parameters:
Returns:

Current figure and axes.

Return type:

tuple

Examples

>>> from colour.models import gamma_function
>>> plot_single_function(partial(gamma_function, exponent=1 / 2.2))
... 
(<Figure size ... with 1 Axes>, <...AxesSubplot...>)
plot_single_function