nibcq.PlotSeries

class nibcq.PlotSeries

Bases: NamedTuple

Generic X/Y series for plotting.

Used for Nyquist (R vs -X) and Bode (frequency vs value) outputs. Access .x and .y to get the values, or just plot it as it is.

x

The x-coordinates of the data points.

Type:

List[float]

y

The y-coordinates of the data points.

Type:

List[float]

Example

>>> series = PlotSeries(x=[1, 2, 3], y=[4, 5, 6])
>>> series.x
[1, 2, 3]
>>> series.y
[4, 5, 6]