adding y- and x-axis values to epochs plot

Hi everyone,

I tried plotting epochs but for some reason, the y- and x-axis values aren’t shown.
This is my code for the plot:

gss_epochs.plot(n_epochs = 3, scalings = "auto")

And this is what my plot looks like:

As you can see, the y-axis label is the channel name (not necessary, I only have 1 channel anyway) and the x-axes labels are the epoch numbers. The epoch numbers on the x-axis are nice to have, but I’d rather have the time in seconds as x-axis ticks and axis ticks with the Volt values for the y-axis.

Does anyone know how to do this?

Thanks in advance! :blush:

As far as I’m aware this is not possible in MNE, but I agree it would be useful, espacially for longer epochs. You may consider submitting a feature request on github issues.

y-axis labels should already exist for data channels at least (like EEG, MEG, fNIRS, etc.):

https://mne.tools/dev/auto_tutorials/epochs/10_epochs_overview.html#basic-visualization-of-epochs-objects

For the x axis, I opened ENH: Add time x axis labels to epochs.plot · Issue #10367 · mne-tools/mne-python · GitHub, feel free to subscribe/follow there!

1 Like

Ah that’s great, thank you!!