colour.plotting.single_colour_swatch_plot¶
-
colour.plotting.
single_colour_swatch_plot
(colour_swatch, **kwargs)[source]¶ Plots given colour swatch.
Parameters: colour_swatch (ColourSwatch) – ColourSwatch.
Other Parameters: - **kwargs (dict, optional) – {
colour.plotting.render()
}, Please refer to the documentation of the previously listed definition. - width (numeric, optional) – {
colour.plotting.multi_colour_swatches_plot()
}, Colour swatch width. - height (numeric, optional) – {
colour.plotting.multi_colour_swatches_plot()
}, Colour swatch height. - spacing (numeric, optional) – {
colour.plotting.multi_colour_swatches_plot()
}, Colour swatches spacing. - columns (int, optional) – {
colour.plotting.multi_colour_swatches_plot()
}, Colour swatches columns count. - text_display (bool, optional) – {
colour.plotting.multi_colour_swatches_plot()
}, Display colour text. - text_size (numeric, optional) – {
colour.plotting.multi_colour_swatches_plot()
}, Colour text size. - text_offset (numeric, optional) – {
colour.plotting.multi_colour_swatches_plot()
}, Colour text offset.
Returns: Current figure or None.
Return type: Figure
Examples
>>> RGB = (0.32315746, 0.32983556, 0.33640183) >>> single_colour_swatch_plot(ColourSwatch(RGB))
- **kwargs (dict, optional) – {