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

Class _Line

_Object --+
          |
         _Line


Class used by Plot and to store information about lines.
Method Summary
  __init__(self, parent, x, y, linestyle, linewidth, color, label)
Initialization function for Line.
  plot(self)
Plot the line.
  range(self)
Get the plot range required to show all the line.
    Inherited from _Object
  __getattr__(self, name)

Method Details

__init__(self, parent, x, y, linestyle=None, linewidth=None, color=None, label=None)
(Constructor)

Initialization function for Line.
Parameters:
x - an array of x world coordinates for the line segments
           (type=float array)
y - an array of y world coordinates for the line segments
           (type=float array)
linestyle - Linestyle to use when drawing the line (defaults to global value)
           (type=integer)
linewidth - Linewidth to use for drawing the line (defaults to global value)
           (type=integer)
color - The color use (defaults to global color)
           (type=integer or string)
label - optional label for a legend
           (type=string.)

plot(self)

Plot the line. Normall used by the parent class.

range(self)

Get the plot range required to show all the line.

Generated by Epydoc 2.1 on Tue Sep 25 12:14:22 2007 http://epydoc.sf.net