# question about epochs.plot(...)

**URL:** <https://mne.discourse.group/t/question-about-epochs-plot/2310>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [September 5, 2020, 12:51am UTC](https://mne.discourse.group/t/question-about-epochs-plot/2310 "2020-09-05T00:51:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [September 5, 2020, 12:51am UTC](https://mne.discourse.group/t/question-about-epochs-plot/2310/1 "2020-09-05T00:51:32Z")

</div>

External Email - Use Caution

Hello,

I encountered a problem when using the latest version of epochs.plot(...)  
in your sample:  
[https://mne.tools/stable/auto\_examples/io/plot\_objects\_from\_arrays.html#sphx-glr-auto-examples-io-plot-objects-from-arrays-py](https://mne.tools/stable/auto_examples/io/plot_objects_from_arrays.html#sphx-glr-auto-examples-io-plot-objects-from-arrays-py)  
The following line works:  
epochs.plot(picks=picks, scalings='auto', show=True, block=True)  
but the following line doesn't work, there is error.  
epochs.plot(picks=picks, scalings='auto', show=True, block=True, n\_epochs=2)

Thanks,  
Jenny  
-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20200904/aa14a9b8/attachment.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200904/aa14a9b8/attachment.html)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [September 6, 2020, 12:49pm UTC](https://mne.discourse.group/t/question-about-epochs-plot/2310/2 "2020-09-06T12:49:34Z")

</div>

External Email - Use Caution

Hi Jenny,

When I run the code you posted, I do not get an error. Are you using the  
latest version of MNE-python and can you post what the error is?

best,  
Mads

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [September 6, 2020, 5:36pm UTC](https://mne.discourse.group/t/question-about-epochs-plot/2310/3 "2020-09-06T17:36:22Z")

</div>

External Email - Use Caution

Hi,

Please keep the email list on the emails.

When I try the notebook I do not get the error. Can you post the output  
of: python -c "import mne; mne.sys\_info()"

Mads

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [September 6, 2020, 6:33pm UTC](https://mne.discourse.group/t/question-about-epochs-plot/2310/4 "2020-09-06T18:33:32Z")

</div>

External Email - Use Caution

This error:

> ValueError: The number of FixedLocator locations (2),  
> usually from a call to set\_ticks, does not match the number of ticklabels (3)

has, I believe, already been fixed. Either upgrade to latest stable version (0.20.8) or use the development version.  
-- dan  
Daniel McCloy  
[https://dan.mccloy.info](https://dan.mccloy.info)  
Research Scientist  
Institute for Learning and Brain Sciences  
University of Washington

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [September 6, 2020, 6:37pm UTC](https://mne.discourse.group/t/question-about-epochs-plot/2310/5 "2020-09-06T18:37:55Z")

</div>

External Email - Use Caution

(spudtrE) [qin at localhost ~]$ python -c "import mne; mne.sys\_info()"  
Platform: Linux-3.10.0-1127.8.2.el7.x86\_64-x86\_64-with-glibc2.10  
Python: 3.8.5 (default, Aug 5 2020, 08:36:46) [GCC 7.3.0]  
Executable: /home/qin/anaconda3/envs/spudtrE/bin/python  
CPU: x86\_64: 4 cores  
Memory: 3.6 GB

mne: 0.20.7  
numpy: 1.19.1 {blas=mkl\_rt, lapack=mkl\_rt}  
scipy: 1.5.2  
matplotlib: 3.3.1 {backend=Qt5Agg}

sklearn: 0.23.2  
numba: 0.50.1  
nibabel: 3.1.1  
cupy: Not found  
pandas: 1.1.1  
dipy: 1.1.0  
mayavi: 4.7.2 {qt\_api=pyqt5, PyQt5=5.9.2}  
pyvista: 0.25.3  
vtk: 8.2.0
