mne.viz.
plot_epochs
(epochs, picks=None, scalings=None, n_epochs=20, n_channels=20, title=None, events=None, event_colors=None, show=True, block=False)[source]¶Visualize epochs.
Bad epochs can be marked with a left click on top of the epoch. Bad channels can be selected by clicking the channel name on the left side of the main axes. Calling this function drops all the selected bad epochs as well as bad epochs marked beforehand with rejection parameters.
Parameters: | epochs : instance of Epochs
picks : array-like of int | None
scalings : dict | ‘auto’ | None
n_epochs : int
n_channels : int
title : str | None
events : None, array, shape (n_events, 3)
event_colors : None, dict
show : bool
block : bool
|
---|---|
Returns: | fig : Instance of matplotlib.figure.Figure
|
Notes
The arrow keys (up/down/left/right) can be used to navigate between
channels and epochs and the scaling can be adjusted with - and + (or =)
keys, but this depends on the backend matplotlib is configured to use
(e.g., mpl.use(TkAgg
) should work). Full screen mode can be toggled
with f11 key. The amount of epochs and channels per view can be adjusted
with home/end and page down/page up keys. These can also be set through
options dialog by pressing o
key. h
key plots a histogram of
peak-to-peak values along with the used rejection thresholds. Butterfly
plot can be toggled with b
key. Right mouse click adds a vertical line
to the plot. Click ‘help’ button at bottom left corner of the plotter to
view all the options.
New in version 0.10.0.