colour.plotting.label_rectangles

colour.plotting.label_rectangles(labels, rectangles, rotation='vertical', text_size=10, offset=None, **kwargs)[source]

Add labels above given rectangles.

Parameters:
  • labels (array_like) – Labels to display.
  • rectangles (object) – Rectangles to used to set the labels value and position.
  • rotation (unicode, optional) – {‘horizontal’, ‘vertical’}, Labels orientation.
  • text_size (numeric, optional) – Labels text size.
  • offset (array_like, optional) – Labels offset as percentages of the largest rectangle dimensions.
Other Parameters:
 

axes (Axes, optional) – Axes to use for plotting.

Returns:

Definition success.

Return type:

bool