Skip to content

Feat Requests: pyvista - Brain/timeviewer #7959

Closed

Description

@bloyl

The pyvista, stc plotting is great and already really useful for reviewing data.

here are a few thoughts (in no particular order) I've had using it as part of an analysis pipeline for the last week.

  1. there is no brain.remove_labels() which is mentioned in the add_label docs.
  2. It would be useful to return vertices that are interactively added using timeviewer. This would let you save these points and later use them for analysis.
  3. is it possible to link two timeviewers so they share the same point picking and optionally the same camera/view. I wouldn't want them time synced (at least not by default) so you can look at different types of stcs.
  4. I wonder what the opportunities are for adding labels and having time_viewer display their wave forms. Exposing the parameters for extract_label_time_course via the gui might be a pain though.

Activity

  1. GuillaumeFavelier commented on Jul 6, 2020

    @GuillaumeFavelier
    Contributor

    The pyvista, stc plotting is great and already really useful for reviewing data.

    Thanks for the nice feedback!

    1. This feature was not on the top of the list but this issue can definitely increase the priority
    2. Good idea! We could create a function get_picked_points() or get_picked_vertices(), what do you say?
    3. Only the time controllers can be linked at the moment (colorbar in the todo list). I can see the camera controls being shared easily and picking could be tricky (but possible!).
    4. @agramfort what do you think about this one?

    I'll update #7162 with your comments and link the PRs to this issue too if you want 👍

  2. agramfort commented on Jul 6, 2020

    @agramfort
    SponsorMember
  3. GuillaumeFavelier commented on Sep 9, 2020

    @GuillaumeFavelier
    Contributor

    I wanted to work on 4) but I realized that extract_label_time_course() needs the src parameter (source spaces for left and right hemisphere) which is not available with _Brain. How can I fix this?

    I had this example in mind.

  4. agramfort commented on Sep 9, 2020

    @agramfort
    SponsorMember
  5. larsoner commented on Sep 9, 2020

    @larsoner
    Member

    you should be able to extend extract_label_time_course allowing to
    pass white surfaces instead of src.
    for extract_label_time_course you need the locations and normals of
    the vertices present in the stc.

    Unfortunately this will be quite slow since you should compute the normal directions using patch info. Better I think to allow people to pass src to stc.plot. It's not much to ask, you need it for plot_volume_source_estimates anyway.

  6. agramfort commented on Sep 9, 2020

    @agramfort
    SponsorMember
  7. added this to the 0.22 milestone on Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions