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

Class _ErrorBar

_Object --+
          |
         _ErrorBar


A class used by the Plot class to store information about drawing errorbars
Method Summary
  __init__(self, parent, x, y, dy1, dy2, dx1, dx2, length, linestyle, linewidth, color)
Initialization function for ErrorBar.
  plot(self)
Plot the errorbars.
  range(self)
Return the range needed to plot all the data.
    Inherited from _Object
  __getattr__(self, name)

Method Details

__init__(self, parent, x, y, dy1=None, dy2=None, dx1=None, dx2=None, length=1, linestyle=None, linewidth=None, color=None)
(Constructor)

Initialization function for ErrorBar. If dy1 and dy2 are specified, you get uneven errorbars (unless dy1 = dy2). If you only specify dy1, you get symmetric errorbars. Same goes for dx1 and dx2
Parameters:
x - an array of x world coordinates for the errorbars
           (type=float array)
y - an array of y world coordinates for the errorbars
           (type=float array)
dy1 - an array of upper limits for the y errorbars
           (type=float array)
dy2 - an array of lower limits for the y errorbars
           (type=float array)
dx1 - an array of upper limits for the x errorbars
           (type=float array)
dx2 - an array of lower limits for the x errorbars
           (type=float array)
length - multiplier for default length of errorbar terminals
           (type=float)
linestyle - Linestyle to use when drawing the errorbars (defaults to global value)
           (type=integer)
linewidth - Linewidth to use for drawing the errorbars (defaults to global value)
           (type=integer)
color - The color use (defaults to global color)
           (type=integer or string)

plot(self)

Plot the errorbars. Usually called from the parent class.

range(self)

Return the range needed to plot all the data.

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