colour.plotting.plot_image#

colour.plotting.plot_image(image: ArrayLike, imshow_kwargs: Optional[Dict] = None, text_kwargs: Optional[Dict] = None, **kwargs: Any) Tuple[Figure, Axes][source]#

Plot given image.

Parameters:
Returns:

Current figure and axes.

Return type:

tuple

Examples

>>> import os
>>> import colour
>>> from colour import read_image
>>> path = os.path.join(
...     colour.__path__[0],
...     "examples",
...     "plotting",
...     "resources",
...     "Ishihara_Colour_Blindness_Test_Plate_3.png",
... )
>>> plot_image(read_image(path))  
(<Figure size ... with 1 Axes>, <...AxesSubplot...>)
plot_image