plot_transition_network_with_curved_edges#
- plot_transition_network_with_curved_edges(transition_matrix: DataFrame, threshold: int = 0, figsize: tuple = (10, 10), ax: Axes = None, node_colors: dict = None, colorbar_label: str = 'Transition Frequency') Figure[source]#
The transitions as a network: an arrow from each row to each column, wider and darker the more transitions (e.g. from metrics.occupancy.get_followers_matrix: which subject used the box after which). Transitions of an item to itself are not drawn.
- Parameters:
transition_matrix – counts, the same items in rows (from) and columns (to).
threshold – leave out the arrows with less than this percentage of all the transitions.
figsize – of the new figure, if ax is None.
ax – draw here (default: a new figure).
node_colors – {item: colour} (default: one colour for all).
colorbar_label – the label of the colour scale of the arrows.
- Returns:
The figure.