Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix typos in docstrings and comments#31538

Closed
Bojun-Vvibe wants to merge 1 commit intomatplotlib:mainfrom
Bojun-Vvibe:agent/matplotlib_matplotlib-1776709048
Closed

Fix typos in docstrings and comments#31538
Bojun-Vvibe wants to merge 1 commit intomatplotlib:mainfrom
Bojun-Vvibe:agent/matplotlib_matplotlib-1776709048

Conversation

@Bojun-Vvibe
Copy link
Copy Markdown

Repo: matplotlib/matplotlib (⭐ 20000)
Type: docs
Files changed: 3
Lines: +3/-3

What

Fix three small typos in user-facing docstrings and an internal comment:

  • lib/matplotlib/_mathtext.py: "the the actual" → "the actual" (comment).
  • lib/matplotlib/colors.py: "through the the corresponding norm" → "through the corresponding norm" (rendered docstring for Colorizer.inverse).
  • lib/matplotlib/text.py: "the location to of the offset origin" → "the location of the offset origin" (rendered docstring for OffsetFrom).

Why

Two of the three errors appear in published API docstrings, where they are visible
to downstream users and on matplotlib.org. The third is in a comment but reads as
a doubled-word typo. Fixes are isolated and unambiguous.

Testing

Pure documentation/comment edits — no behavior change. Verified each change is a
self-contained word-level fix and leaves surrounding prose grammatical.

Risk

Low — comment/docstring text only, no code paths touched.

@dstansby
Copy link
Copy Markdown
Member

It seems to me like this contribution is entirely AI generated, which goes against our AI policy: https://matplotlib.org/devdocs/devel/contribute.html#use-of-generative-ai.

@Bojun-Vvibe have you read our AI policy, and have you yourself made these changes and written the PR description above?

@dstansby dstansby added the ai-contribution PRs that are AI generated without a human in the loop label Apr 20, 2026
@Bojun-Vvibe Bojun-Vvibe closed this by deleting the head repository Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants