Skip to content

GC.element_style() ​

Edit or reset one element: a gene, label, title or legend entry.

Usage ​

python
chart.element_style(
    component,
    row_id,
    cluster,
    part,
    end,
    reset,
    group,
    **options,
)

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

chart is a GC chart.

Arguments ​

ArgumentTypeDescription
componentstr"genes", "labels", "coordinates", "clusterTitle", "clusterFooter", "clusterLabel", "legend", "title", "scaleBar" or "scale". Default "genes".
row_idfloat, optionalThe row (rowID, from 1) of a gene, label or coordinate.
clusterint or str, optionalThe cluster of a title, footer, label, scale or scale bar.
partstr, optional"title" or "subtitle"; "label" or "marker" for the legend.
endstr, optional"start" or "end", for a coordinate.
resetboolRemove the earlier edits of the element instead. Default False.
groupstr, optionalThe group of a legend entry.
**optionsThe element's new options, e.g. fill="blue", move_x=10, text="New".

Value ​

GC: The chart.