Skip to content

GC.scale_bar() ​

Add a scale bar to the clusters.

Usage ​

python
chart.scale_bar(
    show,
    cluster,
    scale_bar_line_style,
    scale_bar_tick_style,
    label_style,
    **options,
)

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

chart is a GC chart.

Arguments ​

ArgumentTypeDescription
showboolWhether to show the scale bar. Default True.
clusterint, str or list, optionalThe clusters, by number (from 1) or name. Default: all.
scale_bar_line_style, scale_bar_tick_styledictStyles of the line and the ticks (lineStyle and tickStyle in the spec).
label_styledictStyle of the label.
**optionsFurther options, e.g. title="1 kb", scale_bar_unit=1000.

Value ​

GC: The chart.