pyeeg.vizu.plot_trf_signi
- pyeeg.vizu.plot_trf_signi(trf, reject, time_highlight=None, spatial_colors=True, info=None, ax=None, shades=None, **kwargs)
Plot a TRF with significant portions highlighted and with thicker lines.
- Parameters:
trf (
mne.Evokedor TRF-like object) – The temporal response function(s) to plot.reject (ndarray (n_times x n_feats x n_channels) or similar) – Boolean array indicating significant samples.
time_highlight (list of list of tuple, optional) – Per feature, list of (tmin, tmax) time intervals of interest to highlight instead of the significant samples. If
None(default), the significant samples (reject) are highlighted.spatial_colors (bool) – If
True(default), color each line according to its spatial position (requiresinfo).info (mne.Info instance, optional) – Info object used to compute the spatial colors.
ax (matplotlib.axes.Axes, optional) – Axis on which to plot. If
None(default), a new figure is created.shades (str or list of float, optional) – Color used to shade the highlighted portions. If
None(default), a color is chosen based on the axes face color.**kwargs – Extra keyword arguments passed to
trf.plot().
- Returns:
fig – The figure containing the plot (only returned if
axis None).- Return type: