6.3 Legends

class legend.T
A legend is a subcomponent of area that draws a rectangular box with the description of each plots.

This class supports the following attributes:

bottom_fudge
Type: length in points ( See Section 4) Default: 3.

Amount of space below the last line.

frame_fill_style
Type: fill_style.T ( see Section 16) Default: fill_style.white.

frame_line_style
Type: line_style.T ( see Section 14) Default: line_style.black.

inter_col_sep
Type: length in points ( See Section 4) Default: 0.

Space between each column in the legend.

inter_row_sep
Type: length in points ( See Section 4) Default: 0.

Space between each row in the legend.

left_fudge
Type: length in points ( See Section 4) Default: 5.

Amount of space left of the legend.

loc
Type: (x,y) Default: None.

Bottom-left corner of the legend. The default location of a legend is the bottom-right end of the chart.

nr_rows
Type: int Default: 9999.

Number of rows in the legend. If the number of plots in a chart is larger than nr_rows, multiple columns are created in the legend.

right_fudge
Type: length in points ( See Section 4) Default: 5.

Amount of space right of the legend.

shadow
Type: (xoff,yoff,fill) Default: None.

The value is either None or a tuple. When non-None, a drop-shadow is drawn beneath the object. X-off, and y-off specifies the offset of the shadow relative to the object, and fill specifies the style of the shadow ( see Section 16).

top_fudge
Type: length in points (See Section 4) Default: 0.

Amount of space above the first line.