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
Fix corrupted figures in plot_background_freesurfer_mne #9007
Several plots in tutorials/source-modeling/plot_background_freesurfer_mne.py are messed up (inverted, misaligned, or corrupted). See if you can fix them. Check with @larsoner or @GuillaumeFavelier before you start; some of them might be due to 3D viz bugs that aren't fixed yet.
I think this has to do with a change related to whether the camera's focal point is at 0, 0, 0 (new behavior) or center of the bounding box of all objects in the scene (old behavior). @GuillaumeFavelier I think we should make sure that there is some option like focalpoint='bounds' or so (and focalpoint=None should mean "use existing focal point"), and maybe set "bounds" (back) to the default. WDYT?
this has to do with a change related to whether the camera's focal point is at 0, 0, 0 (new behavior) or center of the bounding box of all objects in the scene (old behavior)
Agreed, the behaviour of the focal point should be clarified and maybe even tested (to avoid this out of focus brain regression) ?
Activity
larsoner commentedon Mar 8, 2021
I think this has to do with a change related to whether the camera's focal point is at 0, 0, 0 (new behavior) or center of the bounding box of all objects in the scene (old behavior). @GuillaumeFavelier I think we should make sure that there is some option like
focalpoint='bounds'or so (and focalpoint=None should mean "use existing focal point"), and maybe set "bounds" (back) to the default. WDYT?GuillaumeFavelier commentedon Mar 8, 2021
Agreed, the behaviour of the focal point should be clarified and maybe even tested (to avoid this out of focus brain regression) ?
larsoner commentedon Mar 8, 2021
A simple test would be to compute the center of mass based on non-background-color pixels. Do you want to try @GuillaumeFavelier ?
GuillaumeFavelier commentedon Mar 8, 2021
bounds are given by VTK's
ComputeVisiblePropBoundsright?EDIT: I suggest we just re-use that to test the new default.
larsoner commentedon Mar 8, 2021
Looks like it, yeah.
GuillaumeFavelier commentedon Mar 8, 2021
I'm on it
drammock commentedon Apr 15, 2021
Just found another corrupted 3D plot: https://mne.tools/dev/auto_tutorials/evoked/plot_20_visualize_evoked.html#d-field-maps