contact_map.ConcurrencePlotter¶
-
class
contact_map.
ConcurrencePlotter
(concurrence=None, labels=None, x_values=None)[source]¶ Plot manager for contact concurrences.
- Parameters
concurrence (
Concurrence
) – concurrence to plot; default None allows to override laterlabels (list of string) – labels for the contact pairs, default None will use concurrence labels if available, integers if not
x_values (list of numeric) – values to use for the time axis; default None uses integers starting at 0 (can be used to assign the actual simulation time to the x-axis)
-
__init__
(concurrence=None, labels=None, x_values=None)[source]¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
([concurrence, labels, x_values])Initialize self.
get_concurrence_labels
(concurrence[, labels])Extract labels for contact from a concurrence object
plot
([concurrence])Contact concurrence plot based on matplotlib
Attributes
x_values
values to use for the x-axis (time)