NetworkSim.simulation.tools.publication.plot_buffer

NetworkSim.simulation.tools.publication.plot_buffer(simulator, metrics=['mean', 'max'], semilog=True)[source]

Plot buffer size statistics of a ParallelSimulator.

Parameters
  • simulator (ParallelSimulator) – The simulator used.

  • metric (list, optional) – A list of the metric(s) of delay statistics, by default ['mean', 'max'], chosen from the following:

    • mean

      Mean delay statistics.

    • min

      Minimum delay statistics.

    • max

      Maximum delay statistics.

  • semilog (bool, optional) – If to plot data on a semi-logarithmic scale, by default True.

Returns

fig – The figure plotted.

Return type

Figure