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
| Argument | Type | Description |
|---|---|---|
show | bool | Whether to show the scale bar. Default True. |
cluster | int, str or list, optional | The clusters, by number (from 1) or name. Default: all. |
scale_bar_line_style, scale_bar_tick_style | dict | Styles of the line and the ticks (lineStyle and tickStyle in the spec). |
label_style | dict | Style of the label. |
**options | Further options, e.g. title="1 kb", scale_bar_unit=1000. |
Value
GC: The chart.
