Skip to content

Fix text wrapping when y position is 1.0 - #32394

Closed
dajiaohuang wants to merge 1 commit into
matplotlib:mainfrom
dajiaohuang:fix-text-wrap-y1
Closed

dajiaohuang wants to merge 1 commit into
matplotlib:mainfrom
dajiaohuang:fix-text-wrap-y1

Conversation

@dajiaohuang

Copy link
Copy Markdown

This PR fixes the issue where text wrapping doesn't work correctly when the vertical position is set to exactly 1.0 (top of the figure). The fix adds special cases for rotation angles 0, 90, 180, and 270 degrees to avoid division by zero and incorrect distance calculations at the edges of the figure box.

Fixes #31537.

Add special cases for rotation angles 0, 90, 180, and 270 degrees
to avoid division by zero and incorrect distance calculations at
the edges of the figure box. Fixes matplotlib#31537.
@rcomer

rcomer commented Sep 25, 2026

Copy link
Copy Markdown
Member

This account is opening a lot of PRs in a short space of time so I assume they are automated.
https://github.com/pulls/SSC_kgDOACcGBg?q=is%3Apr+sort%3Acreated-desc+author%3Adajiaohuang+

Closing the PR and blocking the account for a week per our policy
https://matplotlib.org/devdocs/devel/contribute.html#use-of-generative-ai

@rcomer rcomer closed this Sep 25, 2026
@matplotlib matplotlib temporarily blocked dajiaohuang Sep 25, 2026
@rcomer

rcomer commented Sep 25, 2026

Copy link
Copy Markdown
Member

Also this issue already has a fix at #31546 and I do not recall why that stalled.

@rcomer

rcomer commented Sep 25, 2026

Copy link
Copy Markdown
Member

Actually, we already blocked this account for a week for the same reason here #32279 (comment). Behaviour has not changed so now blocking indefinitely.

@rcomer rcomer added the ai-contribution PRs that are AI generated without a human in the loop label Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-contribution PRs that are AI generated without a human in the loop topic: text

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Erroneous text wrapping when text vertical position is 1.0

2 participants