Repository navigation
Conversation
still minor problems, see vertical scroll bar and display of units
Units and channels types are annotated in butterfly plot.
|
It definitely will conflict with #4972 but I'm not coming back to that if I can avoid it, so I'm happy about this :) Still working on this or no? If it's good to go, set the title to MRG and folks will look |
|
@katarinaslama you might be interested in this |
|
Will look into that. I avoided to touch the meg channel related code. Looks like, there is a need for a general solution, handling any type .... |
Codecov Report
@@ Coverage Diff @@
## master #6210 +/- ##
==========================================
- Coverage 89.07% 87.36% -1.71%
==========================================
Files 413 415 +2
Lines 74540 74584 +44
Branches 12296 12291 -5
==========================================
- Hits 66394 65164 -1230
- Misses 5245 6568 +1323
+ Partials 2901 2852 -49 |
|
Let me know when I should look again |
…butterfly-plot-epochs
|
Maybe, you could have a look. The scaling problem is still an issue. |
Scaling problem is solved, can be merged
|
Finally, everything should work as expected. |
larsoner
left a comment
There was a problem hiding this comment.
Other than a few minor gripes, looks like a nice refactoring. It is almost there I think.
On master with this code:
import mne
raw = mne.io.read_raw_fif(mne.datasets.testing.data_path() +
'/MEG/sample/sample_audvis_trunc_raw.fif')
events = mne.find_events(raw)
epochs = mne.Epochs(raw, events)
epochs.plot(block=True)
I see:
And on this PR:
So there are some differences but I think it's okay / an improvement, except for the ylabels which were nicer before. There should be some ch_type -> nice-ch-type mapping that you can use to fix this, can you look?
|
works like a charm ! @stfnrpplngr can you see why CIs complain? really cool ! |
|
Solving the issue with the labels was really straightforward. Unfortunately, the labels are still not looking nice. But at least, they now fit into the window ;-) |
|
@stfnrpplngr there are a lot of flake8 errors, can you run |
drammock
left a comment
There was a problem hiding this comment.
+1 for merge once CIs are green. Thanks @stfnrpplngr
larsoner
left a comment
There was a problem hiding this comment.
+1 for merge once the CIs are green
| def _plot_sources_epochs(ica, epochs, picks, exclude, start, stop, show, | ||
| title, block): | ||
| """Plot the components as epochs.""" | ||
|
|
There was a problem hiding this comment.
This is a docstyle error :)
But other than this everything passes style tests
|
Azure is happy and I've run |
* butterfly plots for different channels work still minor problems, see vertical scroll bar and display of units * annotating units Units and channels types are annotated in butterfly plot. * updated whats_new.rst and docstring * viewing order corrected * solved bug regarding picks * ordered the types list * Minors * Minor * introducing scalings_default * Added a list with default plotting orders to pick.py * Adding order argument to epochs.py * order argument works now * order added to docstring * Everything works except scaling * Cleaning up * Probably a solution to the scaling problem * Making it more explicit * Minor * scaling problem solved Scaling problem is solved, can be merged * worked on revision * revisions resolved * minor Minor * PEP8 conform * Solved the problem regarding test_ica.py * STY: Newline
|
@stfnrpplngr any time to work on the scale bars PR now? If not, can you let me know what branch has your commits so I can take a look? It would be a cool feature to have in 0.18 if we can do it in the next couple of days |




Added a butterfly argument to
epochs.plot(). Furthermore, it is now able to seperately show "seeg", "ecog" etc. in the butterfly view.I hope it is not in conflict with #4972
Some time ago, I did something similar for the raw browse function (#4848), but there it needed much less refactoring.