pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/matplotlib/matplotlib/pull/31438

global-0bd78641c0a1f3e0.css" /> Fix Annotation arrow not updating after setting patchA by dikshajangra12918-oss · Pull Request #31438 · matplotlib/matplotlib · GitHub
Skip to content

Fix Annotation arrow not updating after setting patchA#31438

Open
dikshajangra12918-oss wants to merge 1 commit intomatplotlib:mainfrom
dikshajangra12918-oss:patch-2
Open

Fix Annotation arrow not updating after setting patchA#31438
dikshajangra12918-oss wants to merge 1 commit intomatplotlib:mainfrom
dikshajangra12918-oss:patch-2

Conversation

@dikshajangra12918-oss
Copy link
Copy Markdown

PR summary

Why is this change necessary?

Setting patchA on Annotation.arrow_patch currently has no visible effect because the arrow position is not recomputed after updating patchA.

What problem does it solve?

This change ensures that when patchA is modified, the annotation is marked as stale. This triggers a recomputation of the arrow position during rendering, fixing the issue where the arrow does not align or clip correctly with the associated text.

What is the reasoning for this implementation?

The arrow position is initially computed correctly, but subsequent updates to patchA are not reflected visually. By marking the annotation as stale when patchA changes, we ensure that the rendering pipeline updates the arrow position accordingly.

AI Disclosure

AI assistance was used in a manner for understanding parts of the codebase and validating the approach. The implementation and reasoning were completed and verified independently.

Setting patchA on Annotation.arrow_patch has no visible effect because the arrow position is not recomputed.

This change ensures that the annotation is marked as stale when patchA changes, triggering proper recomputation during rendering.
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.

1 participant

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy