Holds a complete (continuous) curve in memory.
More...
|
def | __init__ (self, colour, ID, ColName=None, Legend=None) |
| creation of a curve. More...
|
|
def | erase (self) |
| reset curve More...
|
|
def | start (self, StartPos) |
| A curve is a list of successive connected positions + a list of dicontinuities. More...
|
|
def | name (self, N="") |
| sets the curve's name More...
|
|
def | legend (self, L="") |
| sets the curve's caption More...
|
|
def | last (self) |
| returns the last position in the curve More...
|
|
def | add (self, Pos, Draw=True) |
| Adds a new position to the curve. More...
|
|
def | length (self) |
|
def | X_coord (self) |
| list of x-coordinates More...
|
|
def | Y_coord (self) |
| list of y-coordinates More...
|
|
def | Avg (self, start=0) |
| compute average value of Y_coord More...
|
|
def | __iter__ (self) |
|
def | __next__ (self) |
| 2.6-3.x version More...
|
|
def | next (self) |
| Iteratively returns segments of the curve. More...
|
|
def | __repr__ (self) |
|
Holds a complete (continuous) curve in memory.
Definition at line 159 of file Curves.py.
◆ __init__()
def Evolife.Graphics.Curves.Curve.__init__ |
( |
|
self, |
|
|
|
colour, |
|
|
|
ID, |
|
|
|
ColName = None , |
|
|
|
Legend = None |
|
) |
| |
creation of a curve.
A curve is a list of successive connected positions + a list of dicontinuities
Definition at line 162 of file Curves.py.
◆ __iter__()
def Evolife.Graphics.Curves.Curve.__iter__ |
( |
|
self | ) |
|
◆ __next__()
def Evolife.Graphics.Curves.Curve.__next__ |
( |
|
self | ) |
|
◆ __repr__()
def Evolife.Graphics.Curves.Curve.__repr__ |
( |
|
self | ) |
|
◆ add()
def Evolife.Graphics.Curves.Curve.add |
( |
|
self, |
|
|
|
Pos, |
|
|
|
Draw = True |
|
) |
| |
Adds a new position to the curve.
Notes a discontinuity if 'Draw' is False.
Definition at line 208 of file Curves.py.
◆ Avg()
def Evolife.Graphics.Curves.Curve.Avg |
( |
|
self, |
|
|
|
start = 0 |
|
) |
| |
compute average value of Y_coord
Definition at line 230 of file Curves.py.
◆ erase()
def Evolife.Graphics.Curves.Curve.erase |
( |
|
self | ) |
|
◆ last()
def Evolife.Graphics.Curves.Curve.last |
( |
|
self | ) |
|
returns the last position in the curve
Definition at line 203 of file Curves.py.
◆ legend()
def Evolife.Graphics.Curves.Curve.legend |
( |
|
self, |
|
|
|
L = "" |
|
) |
| |
sets the curve's caption
Definition at line 197 of file Curves.py.
◆ length()
def Evolife.Graphics.Curves.Curve.length |
( |
|
self | ) |
|
◆ name()
def Evolife.Graphics.Curves.Curve.name |
( |
|
self, |
|
|
|
N = "" |
|
) |
| |
sets the curve's name
Definition at line 191 of file Curves.py.
◆ next()
def Evolife.Graphics.Curves.Curve.next |
( |
|
self | ) |
|
Iteratively returns segments of the curve.
Definition at line 250 of file Curves.py.
◆ start()
def Evolife.Graphics.Curves.Curve.start |
( |
|
self, |
|
|
|
StartPos |
|
) |
| |
A curve is a list of successive connected positions + a list of dicontinuities.
Definition at line 183 of file Curves.py.
◆ X_coord()
def Evolife.Graphics.Curves.Curve.X_coord |
( |
|
self | ) |
|
list of x-coordinates
Definition at line 220 of file Curves.py.
◆ Y_coord()
def Evolife.Graphics.Curves.Curve.Y_coord |
( |
|
self | ) |
|
list of y-coordinates
Definition at line 225 of file Curves.py.
◆ ColName
Evolife.Graphics.Curves.Curve.ColName |
◆ colour
Evolife.Graphics.Curves.Curve.colour |
◆ currentDiscontinuity
Evolife.Graphics.Curves.Curve.currentDiscontinuity |
◆ CurrentPosition
Evolife.Graphics.Curves.Curve.CurrentPosition |
◆ discontinuities
Evolife.Graphics.Curves.Curve.discontinuities |
◆ ID
Evolife.Graphics.Curves.Curve.ID |
◆ Legend
Evolife.Graphics.Curves.Curve.Legend |
◆ Name
Evolife.Graphics.Curves.Curve.Name |
◆ positions
Evolife.Graphics.Curves.Curve.positions |
◆ thick
Evolife.Graphics.Curves.Curve.thick |
The documentation for this class was generated from the following file: