Skip to content

Conversation

@bloyl
Copy link
Contributor

@bloyl bloyl commented May 25, 2020

In playing with the recent ica ref channels artifact rejection (#7810), I'd sometimes have 4-5 score plots in one column, which I couldn't see.

This PR adds a parameter ('n_col') to 'ica_plot_scores' to use a grid with multiple columns.

There is a question about the following from the test.
ica.plot_scores([0.3, 0.2], axhline=[0.1, -0.1], labels='ecg')
it fails on this PR and is currently commented out.

On master it passed but did not make a plot, because:

if labels == 'ecg':
        labels = [label for label in ica.labels_ if label.startswith('ecg/')]

returned labels = [] and nothing was plotted.

I don't know enough about the ica labeling so someone should advice what the correct behavior is and how to test it.

@bloyl
Copy link
Contributor Author

bloyl commented May 26, 2020

@larsoner or @dengemann could either of you take a look at the commented out test? I'm not sure what it was trying to test.

@bloyl
Copy link
Contributor Author

bloyl commented May 26, 2020 via email

@larsoner larsoner changed the title [WIP] support n_col keyword in ica.plot_score MRG, ENH: Support n_col keyword in ica.plot_score May 26, 2020
Copy link
Member

@larsoner larsoner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor nitpick/idea, then +1 for merge from me!

@larsoner
Copy link
Member

Thanks for working to appease codecov :)

@agramfort agramfort merged commit 68b93fc into mne-tools:master May 28, 2020
@agramfort
Copy link
Member

Thx @bloyl

larsoner added a commit to larsoner/mne-python that referenced this pull request May 28, 2020
* upstream/master:
  MRG: Add support for foreground in _Brain (mne-tools#7843)
  MRG, MAINT: Change default role in conf.py (mne-tools#7841)
  MRG, ENH: Support n_col keyword in ica.plot_score (mne-tools#7825)
  add icons to source dist (mne-tools#7840)
  Add CZI to list of funders (mne-tools#7839)
  DOC: added reference to sesameeg package (mne-tools#7835)
  MRG, ENH: Automatically compute threshold for CTPS ECG detection (mne-tools#7819)
  MAINT: Show how picks work for planars (mne-tools#7833)
  Clearer info docstring (mne-tools#7832)
  MRG, ENH: Add estimation method legend (mne-tools#7830)
  Remove double spaces (mne-tools#7822)
  add troubleshooting message about OpenGL [skip travis] (mne-tools#7827)
  fix links [skip travis] (mne-tools#7826)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants