Skip to content

Fix blit and add selectable - #14368

Merged
drammock merged 4 commits into
mne-tools:mainfrom
larsoner:blit
Oct 5, 2026
Merged

drammock merged 4 commits into
mne-tools:mainfrom
larsoner:blit

Conversation

@larsoner

@larsoner larsoner commented Oct 1, 2026

Copy link
Copy Markdown
Member

Fixes a bug introduced by the new blitting code where if you had, say, 8 blitted axes, the figure would be draw_idled 8 times. The fix is to use a single blitting manager monkey-patched onto the figure. Blitting is a figure-level operation, so it makes sense to share a single manager. Also adds a selectable option to TFR plotting (was previously effectively hard-coded to True) to avoid some potential redraws when making static figures. Slowdown identified with the help of Claude Opus 5.5, which I then used to draft the changes, too (but I reviewed, understand, and iterated on them).

@drammock
drammock merged commit 55477b7 into mne-tools:main Oct 5, 2026
25 checks passed
@drammock
drammock deleted the blit branch October 5, 2026 14:52
@drammock

drammock commented Oct 5, 2026

Copy link
Copy Markdown
Member

thx @larsoner

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants