You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BUG: Arrow rendering no longer correct (scale issue?) #6498
I investigated this one and I discovered that the bug is related to the alpha value passed to the PySurferBrain 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.
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).
Activity
larsoner commentedon Jun 26, 2019
@GuillaumeFavelier can you look into why it no longer plots?
GuillaumeFavelier commentedon Jun 26, 2019
Yeah sure, I'll take care of it.
GuillaumeFavelier commentedon Jun 28, 2019
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
alphavalue passed to thePySurferBrainobject throughadd_data().In my experiments, I saw that although
alphaandvector_alphaare passed as different parameters (alphafor the opacity of the overlay andvector_alphafor the opacity of the arrows),alphahas also an influence on the glyphs displayed. For short, to display the glyphs, bothalphaandvector_alphamust allow it with strictly positive values.So it's possible to do:
But this will activate the smoothing steps and the rendering will be slightly different.
What do you think @larsoner ?
GuillaumeFavelier commentedon Jun 28, 2019
As a hack to disable the overlay in PySurfer, I also tried adding:
surf.actor.visible = Falsejust after this line:
surf.actor.property.backface_culling = Falselarsoner commentedon Jun 28, 2019
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).