Skip to content

GC.color() ​

Set the colours of the genes and the legend.

Usage ​

python
chart.color(color_scheme, custom_colors)

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

chart is a GC chart.

Arguments ​

ArgumentTypeDescription
color_schemestr, optionalA d3 colour scheme (e.g. "schemeCategory10") or a geneviewer palette (e.g. "okabeIto", see geneviewer_palette).
custom_colorslist or dict, optionalColours recycled over the groups, or a dict of colours by group. Groups left out of a dict keep the colours of color_scheme, the palette of the theme or the default colours.

Value ​

GC: The chart.