raw.plot returns a plot with opposite contrast

  • MNE version: 1.3.1
  • operating system: macOS 10.15.7

Hello, I’m trying to plot raw EEG data using raw.plot(), but the plot I get has an opposite contrast; the lines should be black and the background should be white. Please see the screenshot below. How can I fix this?

Hello @sonhkim and welcome to the forum!

I suspect your system is running in dark mode. We then automatically choose a dark theme for the plots too.

You can use NightOwl to conveniently toggle dark / light mode in macOS directly from the menu bar. You can even choose which apps should always stay dark or light — super useful.

Best wishes,
Richard

2 Likes

And you can call raw.plot(theme="light") to disable the auto-detection and force the light theme.

Mathieu

2 Likes

Thanks! That was the problem.