These are the methods and attributes for plot legends.
Save information for later use in creating a legend
INPUTS
text -- text of the legend
dy -- defaults to `self.legend_text_dy`
line_color
-- defaults to `self.line_color`
line_width
-- defaults to `self.line_width`
line_cap
-- defaults to `self.line_cap`
line_type
-- defaults to `self.line_type`
marker -- defaults to None
marker_color
-- defaults to `self.line_color`
marker_scale
-- defaults to 0.5
marker_dict
-- defaults to None
The dict object holding the information given as input
argument is appended to the `self.legend_info` array. If the
`marker` entry is present, then the marker with the given
`marker_color` and `marker_scale` will be shown in the middle
of the legend line. If the `marker_dict` entry is present, it
will have the values for `x` and `y` set to the location of
the middle of the legend line and then it will be passed to
the `show_marker()` method. This gives you the option of
using the full range of marker functionality in legends --
perhaps you would like to use a line marker that is rotated,
stretched, filled in one color, and stroked in another!
Sometimes you just want to have a marker in the legend without
a line; do this by setting `line_type` to None.
The distance in y to move down after a legend line entry,
measured in units of text height. The corresponding distance
in figure coordinates is (`self.legend_text_dy` *
`self.legend_scale` * `self.default_text_height_dy`).
The assumed width of text in a legend, measured in units of
text height. The corresponding width in figure coordinates is
(`self.legend_text_width` * `self.legend_scale` *
`self.default_text_height_dx`). The figure bounding box is
expanded if necessary to provide for this much space. If
`self.legend_text_width` is negative, then the system will
provide a default value depending on the placement of the
legend.
The x position for the start of text in a legend, measured in
units of text height. The corresponding position in figure
coordinates is (`self.legend_text_xstart` *
`self.legend_scale` * `self.default_text_height_dx`).
The y position for the start of text in a legend, measured in
units of text height. The corresponding position in figure
coordinates is (`self.legend_text_ystart` *
`self.legend_scale` * `self.default_text_height_dy`).
Copyright (C) 2007 Taro Sato & Bill Paxton. All rights reserved.