hypersynchronization.plot_phases_ring#

hypersynchronization.plot_phases_ring(H, thetas, cmap='twilight', ax=None, colorbar=True, **kwargs)[source]#

Plot the phase of oscillators at time it on a circle.

The phase values are represented by the node color, and the oscillators are positioned evenly spaced on the circle.

Parameters:
Hxgi Hypergraph

Hypergraph to plot

thetasnp.ndarray

The phase of each oscillator over time. Shape is (N,).

cmapcolormap

Colormap used to map the phases to colors

axplt.Axes, optional

The axes to plot on, by default None.

colorbarbool, optional

If True (default), plot a colorbar.

**kwargs: dict

All arguments to pass to xgi’s draw_nodes.

Returns:
plt.Axes

The plot’s axes.