Logo Search packages:      
Sourcecode: mascyma version File versions  Download package

matplotlib::axes::Legend Class Reference

Inherits artist::Artist.

List of all members.

Detailed Description

Place a legend on the axes at location loc.  Labels are a
sequence of strings and loc can be a string or an integer
specifying the legend location

The location codes are

  'best' : 0,          (currently not supported, defaults to upper right)
  'upper right'  : 1,  (default)
  'upper left'   : 2,
  'lower left'   : 3,
  'lower right'  : 4,
  'right'        : 5,
  'center left'  : 6,
  'center right' : 7,
  'lower center' : 8,
  'upper center' : 9,
  'center'       : 10,
Return value is a sequence of text, line instances that make
up the legend

Definition at line 961 of file axes.py.

Public Member Functions

def __init__
def get_child_artists
def get_window_extent

Public Attributes


Static Public Attributes

float AXESPAD = 0.02
dictionary codes
int FONTSIZE = 10
float HANDLELEN = 0.05
float HANDLETEXTSEP = 0.02
float LABELSEP = 0.005
float PAD = 0.2

Private Member Functions

def _approx_text_height
def _draw
def _get_handle_text_bbox
def _get_handles
def _get_texts
def _offset
def _update_positions

Private Attributes


The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index