Skip to content

BUG: Arrow rendering no longer correct (scale issue?) #6498

Closed

Activity

  1. added this to the 0.19 milestone on Jun 26, 2019
  2. larsoner commented on Jun 26, 2019

    @larsoner
    MemberAuthor

    @GuillaumeFavelier can you look into why it no longer plots?

  3. GuillaumeFavelier commented on Jun 26, 2019

    @GuillaumeFavelier
    Contributor

    Yeah sure, I'll take care of it.

  4. GuillaumeFavelier commented on Jun 28, 2019

    @GuillaumeFavelier
    Contributor

    TL;DR: I removed this line and it worked for me.

    For reference, this bug occurs in plot_dipole_orientations.py.

    I investigated this one and I discovered that the bug is related to the alpha value passed to the PySurfer Brain object through add_data().

    In my experiments, I saw that although alpha and vector_alpha are passed as different parameters (alpha for the opacity of the overlay and vector_alpha for the opacity of the arrows), alpha has also an influence on the glyphs displayed. For short, to display the glyphs, both alpha and vector_alpha must allow it with strictly positive values.

    So it's possible to do:

    brain_loose = stc.plot(subjects_dir=subjects_dir, initial_time=time_max,
    - time_unit='s', size=(600, 400), overlay_alpha=0)
    + time_unit='s', size=(600, 400), overlay_alpha=0.5)

    But this will activate the smoothing steps and the rendering will be slightly different.
    What do you think @larsoner ?

  5. GuillaumeFavelier commented on Jun 28, 2019

    @GuillaumeFavelier
    Contributor

    As a hack to disable the overlay in PySurfer, I also tried adding:

    surf.actor.visible = False

    just after this line:

    surf.actor.property.backface_culling = False

  6. larsoner commented on Jun 28, 2019

    @larsoner
    MemberAuthor

    I'm not sure what the right thing is, I'd just make sure that the examples using vector and non-vector STC plotting still look correct (or in the case of plot_dipole_orientations, now look correct).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions