msmexplorer.plot_voronoi

msmexplorer.plot_voronoi(kmeans, ax=None, obs=(0, 1), cluster_centers=True, radius=None, color_palette=None, xlabel=None, ylabel=None, labelsize=14, alpha=0.4)

Plot voronoi regions in a 2D diagram.

Parameters:
kmeans : msmbuilder.cluster

MSMBuilder cluster object

ax : matplotlib axis, optional (default: None)

Axis to plot on, otherwise uses current axis.

obs : tuple, optional (default: (0, 1))

Observables to plot.

cluster_centers : bool, optional (default: True)

Whether to plot cluster centers.

radius : float, optional

Distance to ‘points at infinity’.

color_palette: list or dict, optional

Color palette to apply

xlabel : str, optional

x-axis label

ylabel : str, optional

y-axis label

labelsize : int, optional (default: 14)

x- and y-label font size

alpha : float, optional (default: 0.4)

The alpha value of the fill

Returns:
ax : matplotlib axis

matplotlib figure axis