# raw.plot() shows an empty figure

**URL:** <https://mne.discourse.group/t/raw-plot-shows-an-empty-figure/10371>\
**Category:** Support & Discussions\
**Created:** [October 10, 2024, 5:29pm UTC](https://mne.discourse.group/t/raw-plot-shows-an-empty-figure/10371 "2024-10-10T17:29:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chholak](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/chholak/32/2599_2.png) [@chholak](https://mne.discourse.group/u/chholak)\
**Post date:** [October 10, 2024, 5:29pm UTC](https://mne.discourse.group/t/raw-plot-shows-an-empty-figure/10371/1 "2024-10-10T17:29:20Z")

</div>

Hello!

I am trying to import EEG data from a CSV file for analysis using MNE-Python. I used mne.io.RawArray after reading the data as a dataframe and creating an MNE info object. The power spectra of the raw object seem reasonable with peaks at expected frequencies. However, when I use `raw.plot()`, I see an empty figure. I tried changing the scale and using the butterfly mode, but did not see any signal still. I am able to extract the data again using `raw.get_data()`, but just can’t see it in `raw.plot()`. Am I missing something?

I am running MNE 1.6.0 on MacOS Sonoma 14.6.

Thanks in advance,  
Parth

---

<div class="post-metadata">

**Author:** ![tsbinns](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/tsbinns/32/4543_2.png) [@tsbinns](https://mne.discourse.group/u/tsbinns)\
**Post date:** [October 10, 2024, 5:47pm UTC](https://mne.discourse.group/t/raw-plot-shows-an-empty-figure/10371/2 "2024-10-10T17:47:40Z")

</div>

Hi,

Just a thought, but when you changed the scaling, was this once the figure was already opened? If so, it’s possible you just didn’t rescale the y-axis enough.

What happens if you call `raw.plot()` with `scalings="auto"`?

Cheers,  
Thomas

---

<div class="post-metadata">

**Author:** ![chholak](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/chholak/32/2599_2.png) [@chholak](https://mne.discourse.group/u/chholak)\
**Post date:** [October 10, 2024, 6:14pm UTC](https://mne.discourse.group/t/raw-plot-shows-an-empty-figure/10371/3 "2024-10-10T18:14:03Z")

</div>

Hi Thomas,

That was it! I set `scalings="auto"` and the data showed up. It seems that the scale was orders of magnitude different from what I was inputting, i.e., input data values were of the order of 10^4, whereas the y-axis scale in the figure from `raw.plot()` shows signal of the order of 10^8. Setting auto scaling showed me the correct scale to view the graph.

Thanks!  
Parth

---

<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:** [October 17, 2024, 6:14pm UTC](https://mne.discourse.group/t/raw-plot-shows-an-empty-figure/10371/4 "2024-10-17T18:14:30Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
