🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@joeljdom
Copy link

@joeljdom joeljdom commented Oct 9, 2025

AxesImage objects created by imshow(..., animated=True) were still drawn on the initial render. Other artists marked animated=True are skipped until explicitly drawn, so this was inconsistent.

This PR removes the special-case that exempted AxesImage from the animated filter in _AxesBase.draw. Animated images are now treated the same as other animated artists on first draw. A regression test asserts visual equality with a blank reference.

Why needed: makes animated=True semantics consistent across artist types and prevents confusing initial frames in animation workflows.

PR checklist

@rcomer
Copy link
Member

rcomer commented Oct 13, 2025

Thank you for your contribution @joeljdom. I note there is already a PR linked for this issue at #30052, so we should prioritise the one that was opened first.

@timhoffm
Copy link
Member

timhoffm commented Dec 8, 2025

Thanks for your willingness to contribute. However, there's already a more mature solution available in #30052. Per our contribution policy, please do not submit concurrent pull requests without prior consultation. Also the mock approach to testing there is somewhat more efficient than comparing to a reference image.

@timhoffm timhoffm closed this Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Why does setting imshow(animated=True) still show an image?

3 participants