colour.plotting.plot_single_colour_swatch¶
- colour.plotting.plot_single_colour_swatch(colour_swatch, **kwargs)[source]¶
Plots given colour swatch.
- Parameters
colour_swatch (array_like or ColourSwatch) – Colour swatch, either a regular array_like or a
colour.plotting.ColourSwatch
class instance.**kwargs (dict, optional) – {
colour.plotting.artist()
,colour.plotting.plot_multi_colour_swatches()
,colour.plotting.render()
}, Please refer to the documentation of the previously listed definitions.width (numeric, optional) – {
colour.plotting.plot_multi_colour_swatches()
}, Colour swatch width.height (numeric, optional) – {
colour.plotting.plot_multi_colour_swatches()
}, Colour swatch height.spacing (numeric, optional) – {
colour.plotting.plot_multi_colour_swatches()
}, Colour swatches spacing.columns (int, optional) – {
colour.plotting.plot_multi_colour_swatches()
}, Colour swatches columns count.text_kwargs (dict, optional) –
{
colour.plotting.plot_multi_colour_swatches()
}, Keyword arguments for theplt.text()
definition. The following special keywords can also be used:offset: Sets the text offset.
- Returns
Current figure and axes.
- Return type
Examples
>>> RGB = ColourSwatch(RGB=(0.45620519, 0.03081071, 0.04091952)) >>> plot_single_colour_swatch(RGB) (<Figure size ... with 1 Axes>, <...AxesSubplot...>)