Convenience sub-class of PyDSTool.Point for 2D Euclidean points. If
initialized using a dictionary, xname and yname optional arguments must
specify which coordinate is associated with 'x' and 'y' axes.
Main advantage is lower overhead of initialization and the more
convenient notation point.x and point.y for the two coordinates, that may
nonetheless be given optional actual names (xname and yname). Note that
Python's "dot-based" attribute lookup is only valid for 'x' and
'y' fields.
Optional norm order and labels argument still permitted, as for
original Point. For 2D Pointsets, use original PyDSTool.Pointset
class.
|
__init__(self,
x,
y=None,
xname=' x ' ,
yname=' y ' ,
norm=2,
labels=None)
If y is None, expects 2D array or dictionary in x |
source code
|
|
|
mapNames(self,
themap)
Map coordinate names and label(s), using a symbol map of class
symbolMapClass. |
source code
|
|
|
|
|
todict(self,
aslist=False)
Convert Point2D to a dictionary of array values (or of list with
aslist=True). |
source code
|
|
|
|
|
toPoint(self)
Coerce to regular PyDSTool.Point object |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from Points.Point :
__getstate__ ,
__ne__ ,
__pos__ ,
__setstate__ ,
addlabel ,
copy ,
makeIxMaps ,
removelabel
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__
|