Log plot

class ontologysim.ProductionSimulation.plot.Log_plot.Plot(config_path)

Bases: object

runs seperately from the simulation, the goal of this plot class is to plot the log data, the class needs an extra plot ini

adaptLine(setting_dict, x, ax)

adding a line to the chart

Parameters:

setting_dict

:param x-values :param ax: axes

adaptLogPath(type)

the time analyse plots are lying in subfolder, therefore the subfolders were added to the path

Parameters:

type

Returns:

plot()

main method for plotting, distributes the tasks, different plot tpyes

plot_line()

plotting the kpi over time in a line chart

plot_multiple_line()

allowes to plot multiple kpi’s in one chart, currently restricted to 3 kpi’s each chart is plotted in a sub diagramm

plot_scatter()

plotting a scatte plot with two histogram on each axes

read_log(kpi, type, object_name)

transforms the csv to a pandas and only returns the suitalbe column

Parameters:
  • kpi – str

  • type – str

  • object_name – str, e.g. m_0

Returns:

scatter_hist(x, y, ax, ax_histx, ax_histy)

plottin the values in a scattered histogramm

Parameters:
  • x

  • y

  • ax

  • ax_histx

  • ax_histy

setYLabel(kpi)

set the kpi y aches

Parameters:

kpi – str

Returns:

str: type