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
| Argument | Type | Description |
|---|---|---|
patterns | list or dict, optional | Pattern 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". |
color | str, list or dict | Colour of the pattern lines and dots: one, recycled over the groups, or by group. Default "black". |
background | str, list, dict or None | Colour behind the pattern, as color. Default "white"; None keeps the gene colours. |
size | float | Width and height of a pattern tile in pixels. Default 6. |
stroke_width | float | Width of the pattern lines in pixels. Default 1. |
Value
GC: The chart.
