Skip to content

Conversation

@cvanelteren
Copy link
Collaborator

@cvanelteren cvanelteren commented Jan 24, 2026

Updated the animation draw pipeline to avoid repeated layout recomputation, which was causing layout jitter during animations. Auto‑layout now only runs when the layout is actually dirty or on the initial draw, and layout dirtiness is tracked across format calls, subplot/panel creation, and user‑driven size changes. Added a regression test to ensure draw_idle no longer retriggers layout. CI has been hardened: selected‑test mode now falls back to the full suite when nodeids are missing (exit code 4/5), baseline generation does the same on base commits, and coverage is collected in a single‑process pass to avoid xdist worker gaps. Finally, CI logs were made quieter with short tracebacks and warnings suppressed so failures are easier to spot.

Closes #488

@codecov
Copy link

codecov bot commented Jan 25, 2026

Codecov Report

❌ Patch coverage is 96.25000% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
ultraplot/figure.py 92.30% 0 Missing and 2 partials ⚠️
ultraplot/axes/base.py 50.00% 0 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@cvanelteren cvanelteren marked this pull request as ready for review January 28, 2026 02:25

[tool.pytest.ini_options]
filterwarnings = [
"ignore:'resetCache' deprecated - use 'reset_cache':DeprecationWarning:matplotlib._fontconfig_pattern",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"ignore:'resetCache' deprecated - use 'reset_cache':DeprecationWarning:matplotlib._fontconfig_pattern",
"ignore:'resetCache' deprecated - use 'reset_cache':DeprecationWarning:matplotlib._fontconfig_pattern",
]

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason I cannot accept this change on the web but I don't see what this doesexactly given the code -- other than the extra lien

@cvanelteren
Copy link
Collaborator Author

This PR is not fixed yet. There are some funky things still happening on this PR.

@cvanelteren cvanelteren merged commit bc7f723 into main Jan 30, 2026
14 of 24 checks passed
@cvanelteren cvanelteren deleted the fix-idle-draw-animation branch January 30, 2026 13:08
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.

Points to note when creating animations using ultraplot

3 participants