colour.plotting.label_rectangles¶
-
colour.plotting.
label_rectangles
(rectangles, rotation='vertical', text_size=10, offset=None)[source]¶ Add labels above given rectangles.
Parameters: - 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.
Returns: Definition success.
Return type: