colour.plotting.plot_single_colour_swatch¶
- colour.plotting.plot_single_colour_swatch(colour_swatch: Union[ArrayLike, ColourSwatch], **kwargs: Any) Tuple[plt.Figure, plt.Axes] [source]¶
Plot given colour swatch.
- Parameters
colour_swatch (Union[ArrayLike, ColourSwatch]) – Colour swatch, either a regular ArrayLike or a
colour.plotting.ColourSwatch
class instance.kwargs (Any) – {
colour.plotting.artist()
,colour.plotting.plot_multi_colour_swatches()
,colour.plotting.render()
}, See the documentation of the previously listed definitions.
- Returns
Current figure and axes.
- Return type
Examples
>>> RGB = ColourSwatch((0.45620519, 0.03081071, 0.04091952)) >>> plot_single_colour_swatch(RGB) (<Figure size ... with 1 Axes>, <...AxesSubplot...>)