msmexplorer.plot_msm_network

msmexplorer.plot_msm_network(msm, pos=None, node_size=None, node_color='pomegranate', edge_color='carbon', alpha=0.7, ax=None, with_labels=True, **kwargs)

Plot MSM network diagram.

Parameters:
msm : msmbuilder.msm

MSMBuilder MarkovStateModel

pos : dict, optional

Node positions in dict format (e.g. {node_id : [x, y]})

node_color : str or [r, g, b], optional

networkx node colors

node_size : int or list, optional

networkx node size

node_color : str, optional

networkx edge color

ax : matplotlib axis, optional (default: None)

Axis to plot on, otherwise uses current axis.

with_labels : boolean, optional

Whether or not to include node labels (default: True)

alpha : float, optional (default: 0.7)

Opacity of nodes

**kwargs : dict, optional

Extra arguments to pass to networkx.draw_networkx

Returns:
ax : matplotlib axis

matplotlib figure axis