-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIX: set background color in raw.plot() #10317
Conversation
@mmagnuski can you share a code snippet to replicate the good behavior or provide a screenshot? should you add a what's new entry? |
What's new entry is in the todos , I will add it :) |
Can you check to see if the pyqtgraph backend works? Just in your script do |
@larsoner mne.viz.set_browser_backend('pyqtgraph') Traceback (most recent call last):
File "C:\Users\mmagn\AppData\Local\Temp\ipykernel_16768\491008522.py", line 1, in <module>
mne.viz.set_browser_backend('pyqtgraph')
File "<decorator-gen-188>", line 24, in set_browser_backend
File "C:\Users\mmagn\AppData\Roaming\Python\Python37\site-packages\mne\viz\_figure.py", line 684, in set_browser_backend
_load_backend(backend_name)
File "C:\Users\mmagn\AppData\Roaming\Python\Python37\site-packages\mne\viz\_figure.py", line 596, in _load_backend
from mne_qt_browser import _pg_figure as backend
File "C:\Users\mmagn\AppData\Roaming\Python\Python37\site-packages\mne_qt_browser\_pg_figure.py", line 20, in <module>
from PyQt5.QtCore import (QEvent, QThread, Qt, pyqtSignal, QRectF, QLineF,
ImportError: DLL load failed: The specified procedure could not be found. |
Thanks @mmagnuski ! |
Thanks @larsoner - but I didn't write a test or fill whats new, should I still do it? |
If you can think of an easy test, sure (maybe a |
(I can do it in another PR) |
No problem :). Yes, I was thinking of a test like this. Ok, I can submit another PR in a few hours. |
Am I correct that the errors stemmed from mne/viz/raw.py and mne/viz/_mpl_figure.py. I edited my local copies of these files to incorporate what I see on github: (Please let me know if I should not have done that or whether I should do a module update instead.) A new error resulting |
Feel free to post a minimal example here |
Here's my script, ICA_Source_Plot.py
Here's the error message:
|
@mmagnuski can you look? |
@fishbacp |
@mmagnuski --does that mean I should not have edited mne/viz/raw.py and mne/viz/_mpl_figure.py as above to incorporate the changes highlighted in green? Should I just download the two versions of these scripts as located in https://github.com/mne-tools/mne-python/tree/main/mne/viz? You'll have to pardon my lack of experience using github. |
@fishbacp But I completely understand changing by hand BTW - to get the most up to date mne-python I'm afraid you would have to follow the mne contributing guide instructions and that requires installing git and installing mne in development version and it takes some time the first time you do it. |
Thanks for the sound advice. It's good for me to learn these things, and I'll get started on doing so right away. :) |
Reference issue
Example: Fixes #10314.
What does this implement/fix?
bgcolor
argument was ignored by raw plotter.on main branch the
![](https://user-images.githubusercontent.com/8452354/153425087-cfac244f-73cd-446f-96d3-97c574410b09.png)
bgcolor
does not lead to any observable effects. Now it looks like this:TODOs: