-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Rework _Brain show #7580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework _Brain show #7580
Conversation
|
What do you think of this change @agramfort, @larsoner ? Does it fix the 'jerkiness' for you @hoechenberger ? |
Codecov Report
@@ Coverage Diff @@
## master #7580 +/- ##
==========================================
- Coverage 90.20% 90.04% -0.17%
==========================================
Files 452 452
Lines 82104 82951 +847
Branches 13109 13113 +4
==========================================
+ Hits 74064 74690 +626
- Misses 5206 5407 +201
- Partials 2834 2854 +20 |
|
@GuillaumeFavelier it fixes the jerkiness of the controls. Is it possible to also fix the jerkiness of the bottom matplotlib plot when |
should be possible indeed, I'll take a look. |
|
Just tried it out with @GuillaumeFavelier together via Zoom on macOS. Works great, if one ignores the "traces" window issue @larsoner mentioned. If this could be fixed, I'd be happy. :) |
|
I switched my desktop window manager from So I'll try by showing the matplotlib canvas hopefully to update the layout calculation before the final |
|
The latest commit appears to have fixed all jerkiness for me, thanks @GuillaumeFavelier ! |
Nice! And what about you @hoechenberger ? |
|
There is only a minor jerkiness left here, which occurs when |
|
Oh the status bar! I should enable it once and for all xD |
|
don't wait for me to merge.
… |
|
Sorry it's the exact opposite of what I wrote above: status bar pops in when In both cases, |
|
What I mean is that the status bar is not supposed to pop in any way. This is not intended. |
|
I don't see the point to enable it in this PR without anything to populate it right now. It was done in #7257 to get info about the calculation but got reverted. Is it okay for you if I work on the status bar in another PR and work towards fixing the jerkiness at that time? |
Maybe it's a macOS & Qt thing then. BUUUT I have some ideas how to use the status bar ;)) |
|
@GuillaumeFavelier Only now I see your previous comment. Yes, that's totally alright, do what you need to do :) |
|
Thanks @GuillaumeFavelier |
* upstream/master: (1522 commits) FIX: Show bug MRG, FIX: Datetime call in gdf 2.x age calculation (mne-tools#7581) DOC: Simplify Darwin installation (mne-tools#7584) MRG, ENH: Allow picking without preload (mne-tools#7507) DOC: Document anonymization better (mne-tools#7587) Rework _Brain show (mne-tools#7580) DOC: Fixes in tutorial (mne-tools#7579) ENH: muscle artifact detection (mne-tools#7407) MRG: Remove toolbars in PyVista plotter (mne-tools#7572) WIP: Deregister plotter from the figure list in close() (mne-tools#7573) MRG: Fix mouse wheel event in _TimeViewer (mne-tools#7563) FIX: Fix toggle all (mne-tools#7567) MRG, FIX: parallel n_jobs check (mne-tools#7566) Rename artifact detection to movement detection (mne-tools#7569) ENH: Update spelling check [ci skip] (mne-tools#7565) MRG, ENH: Dont require preload for raw resample (mne-tools#7508) MRG: Add interpolation for NIRS signals (mne-tools#7428) WIP: Add temporal derivative distribution repair algorithm (mne-tools#7556) DOC: fix link in docstr [skip ci] (mne-tools#7562) ENH: Custom figure title when plotting Dipole locations (mne-tools#7558) ...
* upstream/master: (1522 commits) FIX: Show bug MRG, FIX: Datetime call in gdf 2.x age calculation (mne-tools#7581) DOC: Simplify Darwin installation (mne-tools#7584) MRG, ENH: Allow picking without preload (mne-tools#7507) DOC: Document anonymization better (mne-tools#7587) Rework _Brain show (mne-tools#7580) DOC: Fixes in tutorial (mne-tools#7579) ENH: muscle artifact detection (mne-tools#7407) MRG: Remove toolbars in PyVista plotter (mne-tools#7572) WIP: Deregister plotter from the figure list in close() (mne-tools#7573) MRG: Fix mouse wheel event in _TimeViewer (mne-tools#7563) FIX: Fix toggle all (mne-tools#7567) MRG, FIX: parallel n_jobs check (mne-tools#7566) Rename artifact detection to movement detection (mne-tools#7569) ENH: Update spelling check [ci skip] (mne-tools#7565) MRG, ENH: Dont require preload for raw resample (mne-tools#7508) MRG: Add interpolation for NIRS signals (mne-tools#7428) WIP: Add temporal derivative distribution repair algorithm (mne-tools#7556) DOC: fix link in docstr [skip ci] (mne-tools#7562) ENH: Custom figure title when plotting Dipole locations (mne-tools#7558) ...
TL:DR:
_TimeVieweris displayed only once, when the UI is ready.The default plotter of the pyvista backend is interactive as soon as it opens that's why one can notice every piece of the interface being added when
time_viewer=Trueresulting in the jerkiness mentioned by @hoechenberger in #7572 (comment) and @jasmainak in #7247 (comment).This PR fixes this behaviour by showing the
_TimeVieweronly when when it's ready (once every GUI element is set up). To achieve that I have to make_Brainaware thattime_vieweris set. So I introduced theshowparameter.This way, the behaviour of
_Brainis more consistent with all the basic_3d.pyprimitives and theshowparameter is now connected to the rest of the viz pipeline.