Selecting ICA components in `ica.plot_components` doesn't work anymore
See original GitHub issueIf I click on the title of a component in the dialog produced by ica.plot_components(inst=raw)
, I get the following error:
File "/usr/local/lib/python3.6/site-packages/matplotlib/cbook/__init__.py", line 389, in process
proxy(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/matplotlib/cbook/__init__.py", line 227, in __call__
return mtd(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/mne/viz/topomap.py", line 1006, in onclick
label = event.inaxes.get_label()
AttributeError: 'NoneType' object has no attribute 'get_label'
Any idea why the label is gone and how to retrieve it (actually, event.inaxes
is None
)?
Issue Analytics
- State:
- Created 6 years ago
- Comments:21 (21 by maintainers)
Top Results From Across the Web
mne.preprocessing.ICA — MNE 1.2.2 documentation
The n_components parameter determines how many components out of the n_channels PCA components the ICA algorithm will actually fit. This is not ...
Read more >Check for ICA (toward Epochs Rejection) - MNE Forum
preprocessing import (ICA) n_components = None # if float, select n_components by explained variance of PCA method = 'fastica' # for comparison with...
Read more >ICA decomposition and component analysis
ICA decomposition and component analysis. Task 1. Run ICA. Exercise... Task 2. Plot components. Identify components. Task 3. Plot component power.
Read more >Repairing artifacts with ICA - | notebook.community
Repairing artifacts with ICA. This tutorial covers the basics of independent components analysis (ICA) and shows how ICA can be used for artifact...
Read more >Independent Component Analysis (ICA) | by Shawhin Talebi
Converting mixed signals to independent components using ICA. Image by author. How it works. There are two key assumptions made in ICA. The ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok, I’ll try to do it in one PR.
@cbrnr
I’m not sure, I never clicked the titles before. But I tried this on a previous matplotlib version and the error was printed in the console where I started jupyter notebook, but was absent in the notebook view. Maybe matplotlib changed something so now all the errors are passed to the notebook (that’s actually helpful).