Skip to content

ENH: (Optionally) modify the head shown in plot_topomap for MEG data #5471

Closed

Description

@larsoner

Currently plot_topomap always shows a head centered in the MEG layout, i.e., head centered relative to the sensor positions that have been 3d-to-2d projected device coordinate frame.

We should be able to improve the accuracy of this by translating + "rotating" this head by, according to the information in dev_head_t:

  • Show x/y translation by moving the x/y location of the head (in MRG, BUG: Fix M/EEG topomap plotting #7066)
  • Show z translation (depth) by shrinking the head (not doing it because it's going to get too confusing with flattening / ortho vs perspective projection)
  • EDIT: Not doing this either because it's a bit overkill: Show rotation of the head relative to the sensors by:
    1. Showing a (rotated) cross-hairs on the top of the head (in the center of the head iff the rotation part of dev_head_t is np.eye(3))
    2. Showing the ears and nose rotated properly (in gray if they are not visible because they are rotated downward)

I talked to @agramfort and this should be optional so that people can always get the "standard" plot back. But basically I think how we show things right now is essentially incorrect so I think we should add a parameter transform_head that moves from False(master) ->True (this proposal) via deprecation cycle (users only get a warning when showing MEG data).

This is of course contingent on this representation actually visually looking more informative.

Activity

  1. self-assigned this
    on Aug 25, 2018
  2. added this to the 0.17 milestone on Aug 25, 2018
  3. larsoner commented on Oct 4, 2018

    @larsoner
    MemberAuthor

    Not critical, moving to 0.18

  4. modified the milestones: 0.17, 0.18 on Oct 4, 2018
  5. larsoner commented on Nov 1, 2018

    @larsoner
    MemberAuthor

    This should also fix the topomaps seen in places like #5514

  6. larsoner commented on May 6, 2019

    @larsoner
    MemberAuthor

    This one won't make 0.18, moving to 0.19

  7. modified the milestones: 0.18, 0.19 on May 6, 2019
  8. modified the milestones: 0.19, 0.20 on Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions