Module pygplot :: Class _Legend
[show private | hide private]
[frames | no frames]

Class _Legend


A class used by the Plot class to make a legend. We need a reference to the parent Plot class, so that we can access the data attributes.
Method Summary
  __init__(self, parent, height, width, position, dx, dy, bbox, fsize, font, color)
  _bounding_box(self, width, height)
Returns (x1,x2,y1,y2), which is the bounding box of the legend, given the width and height of the text of the legend in world coords.
  _get_scale(self)
  plot(self)

Method Details

_bounding_box(self, width, height)

Returns (x1,x2,y1,y2), which is the bounding box of the legend, given the width and height of the text of the legend in world coords.

Generated by Epydoc 2.1 on Thu Feb 17 15:17:27 2005 http://epydoc.sf.net