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

Class _Line


Class used by Plot and to store information about lines.
Method Summary
  __init__(self, 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.

Method Details

__init__(self, x, y, linestyle=1, linewidth=1, color='white', 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 Thu Feb 17 15:17:27 2005 http://epydoc.sf.net