# Epochs.plot() does not show events

**URL:** <https://mne.discourse.group/t/epochs-plot-does-not-show-events/3053>\
**Category:** Support & Discussions\
**Tags:** visualization, mne-bids, epochs\
**Created:** [April 28, 2021, 6:30am UTC](https://mne.discourse.group/t/epochs-plot-does-not-show-events/3053 "2021-04-28T06:30:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nyorunn](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/nyorunn/32/455_2.png) [@Nyorunn](https://mne.discourse.group/u/Nyorunn)\
**Post date:** [April 28, 2021, 6:30am UTC](https://mne.discourse.group/t/epochs-plot-does-not-show-events/3053/1 "2021-04-28T06:30:56Z")

</div>

Hello,  
For some reason `epochs.plot()` only shows the epochs but not the events. I used the same code as in the tutorial, but the plot looks different:

```python
bids_root = pathlib.Path('out_data/sample_BIDS')

bids_path = mne_bids.BIDSPath(subject='01',
                              session='01',
                              task='audiovisual',
                              run='01',
                              datatype='meg',
                              root=bids_root)

raw = mne_bids.read_raw_bids(bids_path)
raw.load_data()
raw.filter(l_freq=0.1, h_freq=40)
events, event_id = mne.events_from_annotations(raw)

```

`event_id`  
Output:

{‘Auditory/Left’: 1,  
‘Auditory/Right’: 2,  
‘Button’: 3,  
‘Smiley’: 4,  
‘Visual/Left’: 5,  
‘Visual/Right’: 6}

```python
tmin = -0.3 
tmax = 0.5 
baseline = (None, 0) 
epochs = mne.Epochs(raw, 
                    events=events, 
                    event_id=event_id, 
                    tmin=tmin, 
                    tmax=tmax,
                    baseline=baseline, 
                    preload=True)

```

`epochs.plot()`  
Output: left is what I expect it to look like, right is what I actually get. Why doesn’t it show the events?

 ![Screenshot (219)](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/aa806d7fbb27d122c4a9a070b62fe57c829f6889.jpeg)

I use  
conda 4.10.1  
Python 3.9.2  
MNE 0.22.1  
Windows 10

---

<div class="post-metadata">

**Author:** ![drammock](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/drammock/32/4_2.png) [@drammock](https://mne.discourse.group/u/drammock)\
**Post date:** [April 28, 2021, 4:20pm UTC](https://mne.discourse.group/t/epochs-plot-does-not-show-events/3053/2 "2021-04-28T16:20:55Z")

</div>

if you want the events to show up on the plot, you need to do `epochs.plot(events=events)`. When I do that on either 0.22.1 or on current development version, I get something like this:

 ![Screenshot_2021-04-28_11-17-18](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/e8c58488335ca27bf6b7151aec87db7fa3c76510.png)

---

<div class="post-metadata">

**Author:** ![Nyorunn](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/nyorunn/32/455_2.png) [@Nyorunn](https://mne.discourse.group/u/Nyorunn)\
**Post date:** [April 28, 2021, 5:50pm UTC](https://mne.discourse.group/t/epochs-plot-does-not-show-events/3053/4 "2021-04-28T17:50:10Z")

</div>

Awesome, it works! Thank you very much 😊
