pycrostates.viz.plot_cluster_centers#
- pycrostates.viz.plot_cluster_centers(cluster_centers, info, cluster_names=None, axes=None, show_gradient=False, gradient_kwargs={'color': 'black', 'linestyle': '-', 'marker': 'P'}, *, block=False, show=None, verbose=None, **kwargs)[source]#
Create topographic maps for cluster centers.
- Parameters:
- cluster_centers
array(n_clusters, n_channels) Fitted clusters, i.e. the microstates maps.
- info
Info|ChInfo Info instance with a montage used to plot the topographic maps.
- cluster_names
list|None Name of the clusters.
- axes
Axes|None Either
Noneto create a new figure or axes (or an array of axes) on which the topographic map should be plotted. If the number of microstates maps to plot is≥ 1, an array of axes of sizen_clustersshould be provided.- show_gradient
bool If True, plot a line between channel locations with highest and lowest values.
- gradient_kwargs
dict Additional keyword arguments passed to
matplotlib.axes.Axes.plot()to plot gradient line.- block
bool Whether to halt program execution until the figure is closed.
- show
bool|None If True, the figure is shown. If None, the figure is shown if the matplotlib backend is interactive.
- verbose
int|str|bool|None Sets the verbosity level. The verbosity increases gradually between
"CRITICAL","ERROR","WARNING","INFO"and"DEBUG". If None is provided, the verbosity is set to"WARNING". If a bool is provided, the verbosity is set to"WARNING"for False and to"INFO"for True.- **kwargs
Additional keyword arguments are passed to
mne.viz.plot_topomap().
- cluster_centers
- Returns:
- fig
Figure Matplotlib figure(s) on which topographic maps are plotted.
- fig