ffrprep.analysis.plot_phase_consistency

ffrprep.analysis.plot_phase_consistency(phasecon, xaxis, yaxis, pol_names=None, vmax=0.14, ylim=None, figsize=(12, 8), cmap='viridis')[source]

Plot phase consistency matrices.

Parameters:
  • phasecon (dict) – Dictionary of phase consistency arrays

  • xaxis (ndarray) – Time axis in ms

  • yaxis (ndarray) – Frequency axis in Hz

  • pol_names (list, optional) – Order of polarities to plot. If None, uses dict order

  • vmax (float) – Maximum value for colormap (default: 0.14)

  • ylim (tuple, optional) – Frequency limits (min_freq, max_freq)

  • figsize (tuple) – Figure size (default: (12, 8))

  • cmap (str) – Colormap name (default: ‘viridis’)

Returns:

fig

Return type:

matplotlib.figure.Figure