Skip to content

GC.pattern() ​

Fill the genes, exons and legend markers with a pattern per group.

For black and white figures, or to show each group with both a colour and a pattern.

Usage ​

python
chart.pattern(patterns, color, background, size, stroke_width)

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

chart is a GC chart.

Arguments ​

ArgumentTypeDescription
patternslist or dict, optionalPattern names recycled over the groups, or a dict of pattern names by group (groups left out get "none"). Default: a pattern per group in a fixed order. Patterns: "none", "solid", "horizontal", "vertical", "diagonal", "antidiagonal", "grid", "crosshatch", "dots", "zigzag", "checkerboard", "rings", "bricks", "plus", "wideStripes" and "inverseDots".
colorstr, list or dictColour of the pattern lines and dots: one, recycled over the groups, or by group. Default "black".
backgroundstr, list, dict or NoneColour behind the pattern, as color. Default "white"; None keeps the gene colours.
sizefloatWidth and height of a pattern tile in pixels. Default 6.
stroke_widthfloatWidth of the pattern lines in pixels. Default 1.

Value ​

GC: The chart.