Skip to content

GC.cluster_title() ​

Add a title and subtitle above each cluster.

Usage ​

python
chart.cluster_title(
    title,
    subtitle,
    subtitle_font,
    title_font,
    show,
    height,
    cluster,
    align,
    spacing,
    **options,
)

An argument shown without a default is optional too: left out, the chart keeps its default.

chart is a GC chart.

Arguments ​

ArgumentTypeDescription
title, subtitlestr or list of str, optionalThe texts, one per cluster or recycled.
subtitle_font, title_fontdictFont options.
showboolWhether to show the titles. Default True.
heightstr or float, optionalHeight of the titles.
clusterint, str or list, optionalThe clusters, by number (from 1) or name. Default: all.
alignstr or list of str, optional"left", "center" or "right", per cluster or for all.
spacingfloat or list of float, optionalPixels between title and subtitle, per cluster or for all.
**optionsFurther options, e.g. position.

Value ​

GC: The chart.