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
figure (Figure, optional) – Figure to apply the render elements onto.
axes (Axes, optional) – Axes to apply the render elements onto.
- Returns
Current figure and axes.
- Return type