Hi,
I am trying to visualize some epoched data, but the colours or names of each stimulus do not show up when I plot the data.
I also tried just plotting the epochs related to one of the stimuli (named ‘prestimulus’), but I kept getting all epochs, rather than the selection. Eventhough the output from print(epochsN2N3[“prestimulus”]) showed the correct selection.
The events do show up in the right colours in the raw object.
Perhaps I am missing something very obvious, but would be great if anyone could help
Thanks!
MNE version 1.3.1
Windows
# Epoching settings
tmin = 0 # start of each epoch (in sec)
tmax = 1.7 # end of each epoch (in sec)
# Create epochs from stimuli in N2/N3
epochsN2N3 = mne.Epochs(raw_ref_LM[0],
events_N2N3,
tmin=tmin,
tmax=tmax,
event_id=event_dictN2N3,
baseline=None,
preload=True
)
epochsN2N3.plot(
events=events_N2N3,
event_id=event_dictN2N3,
event_color={"prestimulus":"red", "Stimulus/S 1":"blue", "Stimulus/S 2":"blue"},
scalings = 150e-6
)
#tried plotting epochs from one event only
print(epochsN2N3["prestimulus"])
epochsN2N3["prestimulus"].plot(
events=events_N2N3,
event_id=event_dictN2N3,
event_color={"prestimulus":"red"},
scalings = 150e-6
)