utils.progress_board.ProgressBoard#

class ProgressBoard(xlabel: str = None, ylabel: str = None, ylim: tuple[float, float] = (1.0, 0.1), xscale: str = 'linear', yscale: str = 'linear', ls: list[str] = ['-', '--', '-.', ':'], colors: list[str] = ['C0', 'C1', 'C2', 'C3'], figsize: tuple[int, int] = (6, 6), display: bool = True, every_n: int = 1)[source]#

Bases: object

The board that plots data points in animation

Methods

draw

Add a new value to the chart

load_plot

Loads a chart from folder log_folder

save_plot

Save the chart to folder log_folder

Attributes

log_folder

Folder for saving charts

draw(x: int | float, y: int | float, label: str) None[source]#

Add a new value to the chart

Parameters:
  • x (Union[int, float]) – Horizontal coordinate of a point

  • y (Union[int, float]) – Vertical coordinate of the point

  • label (str) – Name of the line to which to add a point

load_plot(file_name: str) None[source]#

Loads a chart from folder log_folder

Parameters:

file_name (str) – File name

log_folder = './log'#

Folder for saving charts

save_plot() None[source]#

Save the chart to folder log_folder