Package wx :: Package lib :: Module plot :: Class PolyLine
[frames | no frames]

Class PolyLine

PolyPoints --+
             |
            PolyLine


Class to define line type and style - All methods except __init__ are private.


Method Summary
  __init__(self, points, **attr)
Creates PolyLine object...
  draw(self, dc, printerScale, coord)
  getSymExtent(self, printerScale)
Width and Height of Marker
    Inherited from PolyPoints
  __getattr__(self, name)
  boundingBox(self)
  getClosestPoint(self, pntXY, pointScaled)
Returns the index of closest point on the curve, pointXY, scaledXY, distance x, y in user coords if pointScaled == True based on screen coords if pointScaled == False based on user coords
  getLegend(self)
  log10(self, data, ind)
  scaleAndShift(self, scale, shift)
  setLogScale(self, logscale)

Method Details

__init__(self, points, **attr)
(Constructor)

Creates PolyLine object
points - sequence (array, tuple or list) of (x,y) points making up line
**attr - key word attributes
    Defaults:
        'colour'= 'black',          - wx.Pen Colour any wx.NamedColour
        'width'= 1,                 - Pen width
        'style'= wx.SOLID,          - wx.Pen style
        'legend'= ''                - Line Legend to display
Overrides:
wx.lib.plot.PolyPoints.__init__

getSymExtent(self, printerScale)

Width and Height of Marker


Generated by Epydoc 2.1.20050511.rpd on Sat Jun 16 16:53:13 2007 http://epydoc.sf.net