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.

ENH: `picks` in raw plot

See original GitHub issue

raw.plot doesn’t have a picks param. IMO it should be added.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
larsonercommented, May 11, 2016

Could we actually do some inferring of channel sets from the channel locations in the data? This way we wouldn’t have to have pre-set channel sets for each data format. I suppose it wouldn’t be terrible if the inferring doesn’t work accurately in all the cases as this is just for making channel sets for plotting time series.

I think ideally we would offer both modes. I suspect Neuromag folks are already surprised we don’t have a way of showing data in the standard channel groups, especially since we already have the selections available.

Right now we plot channels by type, but we don’t have to do it that way. So maybe we could:

  1. Add order kwarg to raw.plot (and maybe also epochs.plot since it does similar things).
  2. If array, plots channels (and only those channels) in the given order.
  3. If 'type' (default), plot by channel type like we do now.
  4. If 'position', it tries to go by position through the channels in some sensible way.
  5. If 'selection', it plots with channel type selections (might only work for Neuromag data?).

Come to think of it, I don’t actually know how mne_browse_raw does it – does it iterate over selections?

In any case, I think that would cover all the use cases we’ve talked about. Under the hood it would mostly I think be some “fun” indexing problems to sort out.

0reactions
agramfortcommented, May 11, 2016

I like the order API you suggest

Read more comments on GitHub >

github_iconTop Results From Across the Web

mne.io.Raw — MNE 1.2.2 documentation - MNE-Python
Pick some channels by type and names. plot ([events, duration, start, n_channels, ...]) Plot raw data. plot_projs_topomap ([ch_type, sensors ...
Read more >
Correct docstring/error message for "ICA.plot_sources" #10934
Describe the new feature or enhancement In mne-icalabel GUI (PR here ... If you do ica.plot_sources(raw, picks=[0, 1]) you get the sources ...
Read more >
Processing and Plotting with TopSpin
Specifically, each piece of raw data has its own expno (experiment number), which is ... The command ppf automatically picks peaks on the...
Read more >
Peak Analysis - OriginLab
You can quickly and interactively find peaks on the graph using Quick Peaks ... Peak Fit: Manually pick peak positions and fit peaks...
Read more >
Using the Curves adjustment in Photoshop - Adobe Support
Initially, the image's tonality is represented as a straight diagonal line on a graph. When adjusting an RGB image, the upper-right area of ......
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