Visualization of average reaction time

Hello!

I am working with ERP data and want to visualize not only EEG signals, but behavioral RT as well. I have this data both externally calculated (averaged) and as response triggers in my EEG files. Are there any way to add this info in mne.viz.plot_compare_evokeds figures?

Best,
Ilya

Hello,

mne.viz.plot_compare_evokeds returns a list of matplotlib figure(s). You can retrieve the figure and add additional processing steps after. For instance, you can add lines, change colors, change style, change title, … all through matplotlib to suit your specific need.

Example with a vertical line:

# (pseudo-code)
fig = mne.viz.plot_compare_evokeds(...)[0]
fig.axes[0].axvline(x=0.1, color=...)

Best,
Mathieu

2 Likes