Plot

This plot allows the KPIs to be displayed live. The setting of the plot is done via the logger_config.ini

class ontologysim.ProductionSimulation.logger.plot.Plot.Plot(logger)

Bases: object

file for plotting kpis during simulation run

initPlot(plot_config)

init plot and create figure

Parameters:

plot_config – log dict

Returns:

startPlot(time)

start plotting

Parameters:

time – int: currently not used

Returns:

update_figure_with_new_value(logger_dict, xval, yval)

sub method for updating plot with new data

Parameters:
  • logger_dict

  • xval

  • yval

Returns:

update_plot(time)

update plot

Parameters:

time – double

Returns:

view_update()

update fig :return:

ontologysim.ProductionSimulation.logger.plot.Plot.random() x in the interval [0, 1).

Note

to determine the unit a y_lookup_table.ini was created. New KPIs must be entered in this table

Plot test

class ontologysim.ProductionSimulation.logger.plot.plot_test.Window

Bases: object

depreciated, only used for setting up the Plot class

update()
update_figure_with_new_value(xval, yval)