msmexplorer.plot_msm_network

msmexplorer.plot_msm_network(msm, pos=None, node_size=300, node_color='pomegranate', edge_color='carbon', 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, optional

networkx node size

node_size : str or [r, g, b], 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)

**kwargs : dict, optional

Extra arguments to pass to networkx.draw_networkx

Returns:

ax : matplotlib axis

matplotlib figure axis