Hi everyone, I’m trying to read EEG data from a csv file but I’m having a problem with the units, even after applying a solution described here on the forum << raw.apply_function(lambda x: x * 1e-6) >> . When plotting raw, the unit of microvolts appears in the upper right corner.
I’m going to guess you meant the upper left corner. Which is normal, EEG channels are plotted by default with a +/- 20uV scale displaying the range 40 uV in the top left corner. If you set scalings='auto' and get uV in the top left corner, you likely scaled the data correctly.
For instance:
from mne.datasets import sample
from mne.io import read_raw_fif
from mne.viz import set_browser_backend
raw = read_raw_fif(sample.data_path() / "MEG" / "sample" / "sample_audvis_raw.fif", preload=True)
raw.pick_types(eeg=True)
raw.filter(1., 40.)
set_browser_backend("matplotlib")
raw.plot(scalings="auto")