Mne-python: raw.plot does not work on my data

Created on 20 Sep 2018  路  5Comments  路  Source: mne-tools/mne-python

I've faced a problem regarding the raw.plot().
I have a .csv file with 7782 X 21 (n_times, n_channel) structure - myData. I've used mne.io.RawArray function to convert my data to a raw data format readable by mne data structure.
When I am using the raw.plot() function, it does not show me what it's supposed to show as channel activities, although eeglab could show me all the activities including noises (plz take a look at the following pictures). I was wondering where does the problem come from and how I can tackle it?
Besides, it is not an interactive plot. How can I make it interactive?

screen shot 2018-09-19 at 8 20 11 pm
screen shot 2018-09-19 at 8 19 51 pm
screen shot 2018-09-19 at 8 19 32 pm

Most helpful comment

You need to change the scaling of the plot or your data. Probably you have data in units of uV and MNE expects data in V

All 5 comments

You need to change the scaling of the plot or your data. Probably you have data in units of uV and MNE expects data in V

You need to change the scaling of the plot or your data. Probably you have data in units of uV and MNE expects data in V

Thanks for the quick response. It is not an interactive plot. How can I make it interactive?

it's interactive if you don't use %matplotlib inline
in the notebook. You can use "%matplotlib qt" or try
"%matplotlib notebook"

I'd recommend %matplotlib or %matplotlib qt, %matplotlib notebook doesn't work so well on my machine - it seems to be slower and usually the default figure size does not fit in the output window of the notebook so the navigation is inconvenient.

Closing as solved, @erfpak7 feel free to reopen if you still have troubles

Was this page helpful?
0 / 5 - 0 ratings