accelmo.dashboard.plot

A log-scale line plot drawn with braille characters.

accelmo.dashboard.plot.DOT_BITS = ((1, 2, 4, 64), (8, 16, 32, 128))

Braille dot bit for (dot column in the cell, dot row in the cell).

class accelmo.dashboard.plot.Series(values, style)[source]

Bases: object

Values per epoch (nan or non-positive = no point) and the style they are drawn in.

Parameters:
  • values (Sequence[float | None])

  • style (str)

values: Sequence[float | None]
style: str
accelmo.dashboard.plot.log_plot(series, width, height, *, reference=1.0)[source]

Draw series on a log y-axis, width x height cells, one Text per row.

Later series are drawn over earlier ones. A dashed line is drawn at reference when it lies inside the data’s range. The last row is the x axis.

Return type:

list[Text]

Parameters:
  • series (Sequence[Series])

  • width (int)

  • height (int)

  • reference (float | None)