Skip to content

Selecting ICA components in ica.plot_components doesn't work anymore #4792

@cbrnr

Description

@cbrnr

If 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)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions