colour.plotting.plot_single_colour_swatch¶
-
colour.plotting.
plot_single_colour_swatch
(colour_swatch, **kwargs)[source]¶ Plots given colour swatch.
- Parameters
colour_swatch (ColourSwatch) – ColourSwatch.
- Other Parameters
**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_parameters (dict, optional) – {
colour.plotting.plot_multi_colour_swatches()
}, Parameters for theplt.text()
definition,offset
can be set to define 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>, <matplotlib.axes._subplots.AxesSubplot object at 0x...>)