Package PyDSTool :: Package Toolbox :: Module phaseplane :: Class Point2D
[hide private]
[frames] | no frames]

Class Point2D

source code

  object --+    
           |    
Points.Point --+
               |
              Point2D

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.

Instance Methods [hide private]
 
__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
 
__contains__(self, coord) source code
 
todict(self, aslist=False)
Convert Point2D to a dictionary of array values (or of list with aslist=True).
source code
 
toarray(self) source code
 
toPoint(self)
Coerce to regular PyDSTool.Point object
source code
 
get(self, coord, d=None) source code
 
__len__(self) source code
 
__abs__(self) source code
 
update(self, d) source code
 
items(self) source code
 
iteritems(self) source code
 
values(self) source code
 
itervalues(self) source code
 
keys(self) source code
 
iterkeys(self) source code
 
has_key(self, k) source code
 
__getitem__(self, ix) source code
 
__call__(self, ix) source code
 
__setitem__(self, ix, val)
Change coordinate array values.
source code
 
__delitem__(self, k) source code
 
__str__(self)
str(x)
source code
 
__repr__(self)
str(x)
source code
 
info(self, verboselevel=1) source code
 
__copy__(self) source code
 
__add__(self, other) source code
 
__sub__(self, other) source code
 
__radd__(self, other) source code
 
__rsub__(self, other) source code
 
__mul__(self, c) source code
 
__div__(self, c) source code
 
__rmul__(self, c) source code
 
__rdiv__(self, c) source code
 
__truediv__(self, c) source code
 
__rtruediv__(self, c) source code
 
__neg__(self) source code
 
__pow__(self, other) source code
 
__eq__(self, other) source code
 
__lt__(self, other) source code
 
__gt__(self, other) source code
 
__le__(self, other) source code
 
__ge__(self, other) 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__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, x, y=None, xname='x', yname='y', norm=2, labels=None)
(Constructor)

source code 

If y is None, expects 2D array or dictionary in x

Overrides: object.__init__

mapNames(self, themap)

source code 

Map coordinate names and label(s), using a symbol map of class symbolMapClass.

Overrides: Points.Point.mapNames
(inherited documentation)

__contains__(self, coord)
(In operator)

source code 
Overrides: Points.Point.__contains__

todict(self, aslist=False)

source code 

Convert Point2D to a dictionary of array values (or of list with aslist=True).

Overrides: Points.Point.todict

toarray(self)

source code 
Overrides: Points.Point.toarray

get(self, coord, d=None)

source code 
Overrides: Points.Point.get

__len__(self)
(Length operator)

source code 
Overrides: Points.Point.__len__

__abs__(self)

source code 
Overrides: Points.Point.__abs__

update(self, d)

source code 
Overrides: Points.Point.update

items(self)

source code 
Overrides: Points.Point.items

iteritems(self)

source code 
Overrides: Points.Point.iteritems

values(self)

source code 
Overrides: Points.Point.values

itervalues(self)

source code 
Overrides: Points.Point.itervalues

keys(self)

source code 
Overrides: Points.Point.keys

iterkeys(self)

source code 
Overrides: Points.Point.iterkeys

has_key(self, k)

source code 
Overrides: Points.Point.has_key

__getitem__(self, ix)
(Indexing operator)

source code 
Overrides: Points.Point.__call__

__call__(self, ix)
(Call operator)

source code 
Overrides: Points.Point.__call__

__setitem__(self, ix, val)
(Index assignment operator)

source code 

Change coordinate array values.

Overrides: Points.Point.__setitem__
(inherited documentation)

__delitem__(self, k)
(Index deletion operator)

source code 
Overrides: Points.Point.__delitem__

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

str(x)

Overrides: object.__repr__
(inherited documentation)

info(self, verboselevel=1)

source code 
Overrides: Points.Point.info

__copy__(self)

source code 
Overrides: Points.Point.__copy__

__add__(self, other)
(Addition operator)

source code 
Overrides: Points.Point.__add__

__sub__(self, other)
(Subtraction operator)

source code 
Overrides: Points.Point.__sub__

__radd__(self, other)
(Right-side addition operator)

source code 
Overrides: Points.Point.__add__

__rsub__(self, other)

source code 
Overrides: Points.Point.__rsub__

__mul__(self, c)

source code 
Overrides: Points.Point.__mul__

__div__(self, c)

source code 
Overrides: Points.Point.__div__

__rmul__(self, c)

source code 
Overrides: Points.Point.__mul__

__rdiv__(self, c)

source code 
Overrides: Points.Point.__rdiv__

__truediv__(self, c)

source code 
Overrides: Points.Point.__div__

__rtruediv__(self, c)

source code 
Overrides: Points.Point.__rdiv__

__neg__(self)

source code 
Overrides: Points.Point.__neg__

__pow__(self, other)

source code 
Overrides: Points.Point.__pow__

__eq__(self, other)
(Equality operator)

source code 
Overrides: Points.Point.__eq__

__lt__(self, other)
(Less-than operator)

source code 
Overrides: Points.Point.__lt__

__gt__(self, other)
(Greater-than operator)

source code 
Overrides: Points.Point.__gt__

__le__(self, other)
(Less-than-or-equals operator)

source code 
Overrides: Points.Point.__le__

__ge__(self, other)
(Greater-than-or-equals operator)

source code 
Overrides: Points.Point.__ge__