question about epochs.plot(...)

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
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

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

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

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
Research Scientist
Institute for Learning and Brain Sciences
University of Washington

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