SparklineCoordinates

Documentation for eth_defi.research.sparkline.SparklineCoordinates Python class.

class SparklineCoordinates

Bases: object

Pixel coordinates shared by deterministic SVG and PNG renderers.

Attributes summary

points

Ordered observation points as (x, y) pixels.

baseline_y

Baseline used by the non-constant gradient area.

is_constant

Whether every finite share price has the same value.

Methods summary

__init__(points, baseline_y, is_constant)

points: tuple[tuple[float, float], ...]

Ordered observation points as (x, y) pixels.

baseline_y: float

Baseline used by the non-constant gradient area.

is_constant: bool

Whether every finite share price has the same value.

__init__(points, baseline_y, is_constant)
Parameters
Return type

None