[Mne_analysis] question about epochs.plot(...)

Dan McCloy dan at mccloy.info
Sun Sep 6 14:33:32 EDT 2020
Search archives:

        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
-------- Original Message --------
On Sep 6, 2020, 12:36, Mads Jensen wrote:

> 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
>
> On 06/09/2020 16.59, Qin Zhang wrote:
>> Hi Mads,
>> Thanks for your reply.
>> The error is:
>>
>> ValueError: The number of FixedLocator locations (2),
>> usually from a call to set_ticks, does not match the number of ticklabels (3)
>>
>> there is no error in older mne version.
>>
>> The attached is .ipynb showing the error message,
>>
>> Thanks,
>>
>> Qin
>>
>>
>> On Sun, Sep 6, 2020 at 5:49 AM Mads Jensen <mje.mads at gmail.com
>> <mailto:mje.mads at gmail.com>> wrote:
>>
>> 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
>>
>> On 05/09/2020 02.51, Qin Zhang wrote:
>> > 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
>> >
>> > _______________________________________________
>> > Mne_analysis mailing list
>> > Mne_analysis at nmr.mgh.harvard.edu
>> <mailto:Mne_analysis at nmr.mgh.harvard.edu>
>> > https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>> >
>>
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200906/0c4279fe/attachment-0001.html 


More information about the Mne_analysis mailing list