GC.cluster_label()
Add a label beside each cluster.
Usage
python
chart.cluster_label(
title,
show,
width,
cluster,
position,
align,
wrap_label,
wrap_options,
subtitle,
subtitle_font,
spacing,
**options,
)An argument shown without a default is optional too: left out, the chart keeps its default.
chart is a GC chart.
Arguments
| Argument | Type | Description |
|---|---|---|
title | str or list of str, optional | The labels, one per cluster or recycled. Default: the cluster names. |
show | bool | Whether to show the labels. Default True. |
width | str or float, optional | Width of the label column. |
cluster | int, str or list, optional | The clusters, by number (from 1) or name. Default: all. |
position | str, optional | "left" or "right". |
align | str or list of str, optional | "left", "center" or "right". |
wrap_label | bool, optional | Whether to wrap long labels. |
wrap_options | dict | Options of the wrapping. |
subtitle | str or list of str, optional | A second line under each label. |
subtitle_font | dict | Font options of the subtitle. |
spacing | float or list of float, optional | Pixels between label and subtitle. |
**options | Further options, e.g. font_weight="bold". |
Value
GC: The chart.
