base class for curve plotting
Methods
|
|
__init__
_get_coor
_set_coor
configure
curvedata
init
psplot
|
|
__init__
|
__init__ ( self, **kwargs )
Exceptions
|
|
KeyError, 'constructur argument "%s" is not registered' % key
|
|
|
_get_coor
|
_get_coor ( self )
|
|
_set_coor
|
_set_coor ( self, coor )
|
|
configure
|
configure ( self, **kwargs )
Exceptions
|
|
KeyError, '%s is not a legal property (keyword argument ' 'to configure or constructor in class %s' %( key, self.__class__.__name__ )
ValueError, 'program cannot be changed; make new object (call graph)'
|
|
|
curvedata
|
curvedata ( self, y )
Return x,y data of a curve based on the y argument.
y can be either a NumPy array or a (x,y) data tuple
of two compatible NumPy arrays.
If y is an array, return self.x, y.
If y is tuple, return the tuple.
Exceptions
|
|
ValueError, '%d x coordinates incompatible with %d y coordinates' %(len( xd ), len( yd ) )
ValueError, 'no coordinates are given, call configure(coor=xdata)'
ValueError, 'y argument must be array or (array,array) tuple'
|
|
|
init
|
init ( self )
init plot
|
|
psplot
|
psplot ( self, ps )
|
|