colour.plotting.multi_colour_swatches_plot

colour.plotting.multi_colour_swatches_plot(colour_swatches, width=1, height=1, spacing=0, columns=3, text_display=True, text_size='large', text_offset=0.075, background_colour=(1.0, 1.0, 1.0), **kwargs)[source]

Plots given colours swatches.

Parameters:
  • colour_swatches (list) – ColourSwatch sequence.
  • width (numeric, optional) – Colour swatch width.
  • height (numeric, optional) – Colour swatch height.
  • spacing (numeric, optional) – Colour swatches spacing.
  • columns (int, optional) – Colour swatches columns count.
  • text_display (bool, optional) – Display colour text.
  • text_size (numeric, optional) – Colour text size.
  • text_offset (numeric, optional) – Colour text offset.
  • background_colour (array_like or unicode, optional) – Background colour.
Other Parameters:
 

**kwargs (dict, optional) – {colour.plotting.render()}, Please refer to the documentation of the previously listed definition.

Returns:

Current figure or None.

Return type:

Figure

Examples

>>> cp1 = ColourSwatch(RGB=(0.45293517, 0.31732158, 0.26414773))
>>> cp2 = ColourSwatch(RGB=(0.77875824, 0.57726450, 0.50453169))
>>> multi_colour_swatches_plot([cp1, cp2])