PyChart Reference Manual

Node:fill_style, Next:font, Previous:color, Up:Top

## Fill Styles

The class `fill_style.T` determines the color and the pattern of the background of a region.

XXX %%fill_style.T

bgcolor <class 'pychart.color.T'> | Attribute

Default: color.white. The background color.

line_interval number | Attribute

Default: 3. The interval between successive stitch lines.

line_style <class 'pychart.line_style.T'> | Attribute

Default: line_style.black. The style of the line.

The actual background patterns are offered by subclasses of `fill_style.T`:

fill_style.Plain | Class

This class just fills the region with the solid background color. Attributes line_style and line_interval are ignored.

fill_style.Diag | Class

This class fills the region with diagonal lines.

fill_style.Rdiag | Class

Fills the region with diagonal lines, but tilted in the opposite direction from `fill_style.Diag`.

fill_style.Vert | Class

Fills the region with vertical lines.

fill_style.Horiz | Class

Fills the region with horizontal lines.

fill_style.Stitch | Class

Fills the region with horizontal and vertical lines.

fill_style.Wave | Class

Fills the region with horizontal wavy lines.

fill_style.Vwave | Class

Fills the region with vertical wavy lines.

fill_style.Lines | Class

Fills the region with a series of short line segments.

The below picture shows the standard set of fill styles. They are named like `fill_style.`name, where name are the labels shown in the picture.

Just for your information, the "rdiag3" style shown in the picture can be created manually by the following code:

    rdiag3 = fill_style.Rdiag(line_style=line_style.T(width=3, color=color.gray5),
                              line_interval=6)