Add params to raw.plot figure#6429
Conversation
params as _mne_params to raw.plot figure|
@larsoner WDYT? |
Codecov Report
@@ Coverage Diff @@
## master #6429 +/- ##
==========================================
- Coverage 89.26% 89.22% -0.05%
==========================================
Files 411 411
Lines 74551 74623 +72
Branches 12323 12328 +5
==========================================
+ Hits 66551 66582 +31
- Misses 5141 5185 +44
+ Partials 2859 2856 -3 |
|
Fine by me. There have been times I wanted access to @agramfort feel free to merge if you can live with the monkey patching here |
| except TypeError: # not all versions have this | ||
| plt_show(show) | ||
|
|
||
| params['fig']._mne_params = params |
There was a problem hiding this comment.
maybe had a comment why and a test to we never break your hack :)
There was a problem hiding this comment.
so no test that ensures that we don't break this in the figure?
There was a problem hiding this comment.
Right, I've added a test.
|
A question: is |
|
We can just do it as the need arises |
cd39eb3 to
d93295b
Compare
|
@agramfort I've added an explanation, feel free to merge. |
|
thx @cbrnr |
Fixes #6425. This allows manipulating keybinds after the raw plot has been created, which is useful e.g. if you want to remove the Escape shortcut to close the window.