Skip to content

BUG: inconsistent auto-clim handling for SourceEstimate and VectorSourceEstimate #7911

Closed

Description

@drammock

In theory, these two things should yield identical results:

vecstc = apply_inverse(..., pick_ori='vector')
vecstc.plot(..., brain_alpha=1., overlay_alpha=1., vector_alpha=0.)

versus

stc = apply_inverse(..., pick_ori=None)
stc.plot(..., surface='white')

In practice, plot_vector_source_estimates calls brain.scale_data_colormap under the hood, while plot_source_estimates does not, so the automatic choosing of clim is quite different in the two cases. If you pass in a clim dict with your own values, then the two approaches indeed look identical, so probably (?) all that is needed is to remove the call to brain.scale_data_colormap.

Activity

  1. agramfort commented on Jun 20, 2020

    @agramfort
    SponsorMember
  2. GuillaumeFavelier commented on Jun 29, 2020

    @GuillaumeFavelier
    Contributor

    I'm afraid scale_data_colormap might be need in plot_vector_source_estimates to update the colormap of the glyphs.

  3. larsoner commented on Jun 29, 2020

    @larsoner
    Member

    Where? For PySurfer or PyVista? With my latest PR, I'd be surprised if it's the case for PyVista. If it is, then it seems like a bug. (And if things aren't working for PySurfer, it seems like probably a bug there, too, that should be fixed.)

  4. GuillaumeFavelier commented on Jun 29, 2020

    @GuillaumeFavelier
    Contributor

    PySurfer, I think it's related to an issue opened a long time ago...

  5. GuillaumeFavelier commented on Jun 29, 2020

    @GuillaumeFavelier
    Contributor

    I think I found it: #6510

  6. larsoner commented on Jun 29, 2020

    @larsoner
    Member

    So it sounds like the bug was not completely fixed

  7. added this to the 0.21 milestone on Aug 24, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions