pyphi.visualize.connectivity.plot_tpm#
- pyphi.visualize.connectivity.plot_tpm(tpm, figsize=(10, 12), clim=None, cmap='viridis', label_fontsize=8, show_label_threshold=64, xticks_top=True, states=None)[source]#
Plot a TPM as a heatmap with state tick labels.
- Parameters:
tpm (np.ndarray) – A 2-D transition probability matrix, typically state-by-state.
states (Sequence[str], optional) – Explicit state labels. An axis is labeled with them when its length equals
len(states). If None, a square matrix with a power-of-two side is labeled with little-endian bit strings, and integer state indices are used otherwise.