Display#

slotted_aloha_simulator.plot.distribution_plot(data, params, legend=True, export=None, keys=None, ym=1e-08, xm=30)[source]#
Parameters:
  • data (list of dict) – List of results from parallelized computation.

  • params (dict) – Parameters to fit

  • legend (bool, default=True) – Draw legend

  • export (str, optional) – Save the figure as export.tex in pgfplots format

  • keys (list, optional) – List of Epochs to display

  • ym (float, optional) – Lower y-bound

  • xm (int, optional) – Higher x-bound

Return type:

None

slotted_aloha_simulator.plot.evolution_plot(data, params, legend=True, export=None, keys=None, names=None)[source]#
Parameters:
  • data (list of dict) – List of results from parallelized computation.

  • params (dict) – Parameters to fit

  • legend (bool, default=True) – Draw legend

  • export (str, optional) – Save the figure as export.tex in pgfplots format

  • keys (list, optional) – Sub-list of occupancy, goodput, efficiency to display.

  • names (list, optional) – Display names for the keys.

Return type:

None

slotted_aloha_simulator.plot.live_plot(data, params, c=4, legend=True, export=None, keys=None)[source]#
Parameters:
  • data (list of dict) – List of results from parallelized computation.

  • params (dict) – Parameters to fit

  • c (int) – Max state value considered as alive.

  • legend (bool, default=True) – Draw legend.

  • export (str, optional) – Save the figure as export.tex in pgfplots format.

  • keys (list, optional) – List of Epochs to display.

Return type:

None

slotted_aloha_simulator.plot.locate_result(data, parameters)[source]#
Parameters:
  • data (list of dict) – List of results from parallelized computation.

  • parameters (dict) – Parameters to fit

Returns:

First result that fits the parameters.

Return type:

dict

slotted_aloha_simulator.plot.tikzplotlib_fix_ncols(obj)[source]#

Workaround for matplotlib 3.6 renamed legend’s _ncol to _ncols, which breaks tikzplotlib