batss.snapshot

A module for Snapshot objects used to visualize the protocol during or after the simulation has run.

Snapshot is a base class for snapshot objects that get are updated by batss.simulation.Simulation.

Plotter is a subclass of Snapshot that creates a matplotlib figure and axis. It also gives the option for a state_map function which maps states to the categories which will show up in the plot.

StatePlotter is a subclass of Plotter that creates a barplot of the counts in categories.

HistoryPlotter is a subclass of Plotter that creates a lineplot of the counts in categories over time.

Classes

HistoryPlotter([state_map, update_time, yscale])

Plotter which produces a lineplot of counts over time.

Plotter([state_map, update_time, yscale])

Base class for a Snapshot which will make a plot.

Snapshot([update_time])

Abstract base class for snapshot objects.

StatePlotter([state_map, update_time, yscale])

Plotter which produces a barplot of counts.

TimeUpdate([time_bound, update_time])

Simple Snapshot that prints the current time in the ppsim.simulation.Simulation.