Skip to content

evoked.plot_white() for raw data #3926

Closed

Description

@olafhauk

An equivalent of evoked.plot_white() for raw data would be very useful for people who want to compare whitening methods for raw data (e.g. resting state) or empty room data.

Activity

  1. larsoner commented on Jan 23, 2017

    @larsoner
    Member
  2. agramfort commented on Jan 23, 2017

    @agramfort
    SponsorMember
  3. larsoner commented on Jan 23, 2017

    @larsoner
    Member

    You could have whitening_cov=None or cov=None and if they pass one in, then you whiten the selected channels (and use an appropriate scale for them). But maybe it's not quite as nice because then the scale would be difficult to see.

    Come to think of it, we could create a new type of raw plot that is a butterfly plot like evoked.plot() but with scroll interactivity. Maybe that would work better.

  4. agramfort commented on Jan 23, 2017

    @agramfort
    SponsorMember
  5. olafhauk commented on Jan 23, 2017

    @olafhauk
    ContributorAuthor

    Such a "butterfly" option (with -1/+1 range highlighted) would be great. It would help identify data segments for which the whitening doesn't work well.
    Alternatively, it could be like the current raw.plot() function, but with an added GFP channel. If one can identify individual channels, this might help with artefact or bad channel detection.

  6. larsoner commented on Feb 20, 2017

    @larsoner
    Member

    and I am thinking that we could improve our raw data viewer to toggle between butterfly plots and current approach

    Actually I don't think this would be too terribly difficult. That's 1) change ylabels, 2) change all offsets to be 0, and 3) change scale, I think.

    So the API changes would be:

    1. Add raw.plot(..., mode='butterfly')
    2. Add raw.plot(..., cov=None)
    3. Add raw.plot_white(cov) which just wraps to raw.plot(..., cov=None, mode='butterfly')

    I think I'd rather omit step (3) and just reference raw.plot in evoked.plot_white. Maybe there is a similar way to change evoked.plot to work like evoked.plot_white, and deprecate evoked.plot_white?

  7. dengemann commented on Feb 20, 2017

    @dengemann
    Member
  8. agramfort commented on Feb 21, 2017

    @agramfort
    SponsorMember
  9. self-assigned this
    on Feb 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions