question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

topo interactivity broken on evoked.plot()

See original GitHub issue

If I do this: plot_evoked

i.e.,

epochs.average().pick_channels(['MEG 1143']).plot()

I get this:

n [15]: Traceback (most recent call last):
  File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 291, in mouseReleaseEvent
    FigureCanvasBase.button_release_event(self, x, y, button)
  File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/backend_bases.py", line 1891, in button_release_event
    self.callbacks.process(s, event)
  File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/cbook.py", line 533, in process
    proxy(*args, **kwargs)
  File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/cbook.py", line 408, in __call__
    return mtd(*args, **kwargs)
  File "/tsi/doctorants/mainak/anaconda/lib/python2.7/site-packages/matplotlib/widgets.py", line 1250, in release
    self.onselect(vmin, vmax)
  File "/tsi/doctorants/mainak/mne-python/mne/viz/evoked.py", line 90, in _butterfly_onselect
    layout=None)
  File "/tsi/doctorants/mainak/mne-python/mne/viz/topomap.py", line 49, in _prepare_topo_plot
    picks, pos = _pair_grad_sensors(info, layout)
  File "/tsi/doctorants/mainak/mne-python/mne/channels/layout.py", line 689, in _pair_grad_sensors
    raise ValueError("No 'grad' channel pairs found.")
ValueError: No 'grad' channel pairs found.

also I find the key mappings a bit weird because it interferes with magnifying the plot …

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
larsonercommented, May 11, 2016

Ahh right, yes we could also modify the plot, that would make it very clear.

1reaction
jasmainakcommented, Mar 24, 2016

I still don’t think it is okay to have errors in interactive mode …

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plotting topographic maps of evoked data - MNE-Python
We plot evoked topographies using mne.Evoked.plot_topomap() . The first argument, times allows to specify time instants (in seconds!) for which topographies ...
Read more >
plot_topo should be a method of evoked? · Issue #2240 - GitHub
Silly question, but I was expecting to do: evoked.plot_topo() instead ... evoked.plot_topo() ... The plot topo takes lists of evokeds too.
Read more >
gnuplot 4.6
An Interactive Plotting Program. Thomas Williams & Colin Kelley. Version 4.6 organized by: Hans-Bernhard Bröker, Ethan A Merritt, and others.
Read more >
III-14 Control Panels.pdf
can also place controls in graph windows and in panel panes embedded into graphs. ... When the top icon is selected, you are...
Read more >
IBrokers: R API to Interactive Brokers Trader Workstation
data() allows for data states to be maintained from call to call, as an xts history of updates/messages is stored within the object....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found