Skip to content

DOC: Remove pyplot text example#31704

Merged
rcomer merged 1 commit into
matplotlib:mainfrom
timhoffm:doc-remove-pyplot-text
May 19, 2026
Merged

DOC: Remove pyplot text example#31704
rcomer merged 1 commit into
matplotlib:mainfrom
timhoffm:doc-remove-pyplot-text

Conversation

@timhoffm
Copy link
Copy Markdown
Member

Motivation: This is part of the general approach to consolidate examples.

Why we don't need the pyplot text example:

  • We don't have to explicitly discuss mathtext for the case of pyplot
  • Title and axkis labels are better described already in the basic plot example
  • plt.text() is not so common as to justify a specific pyplot example. As with most other functions it's sufficient to have examples for the Axes interface (which for text are in the section "Text, labels and annoations")

@github-actions github-actions Bot added the Documentation: examples files in galleries/examples label May 19, 2026
@timhoffm timhoffm force-pushed the doc-remove-pyplot-text branch from 672dbd0 to 03dc67a Compare May 19, 2026 10:18
Motivation: This is part of the general approach to consolidate examples.

Why we don't need the pyplot text example:

- We don't have to explicitly discuss mathtext for the case of pyplot
- Title and axkis labels are better described already in the basic plot example
- `plt.text()` is not so common as to justify a specific pyplot example. As with most other functions it's sufficient to have examples for the Axes interface (which for text are in the section "Text, labels and annoations")
@timhoffm timhoffm force-pushed the doc-remove-pyplot-text branch from 03dc67a to 6cde200 Compare May 19, 2026 10:19
Copy link
Copy Markdown
Member

@rcomer rcomer left a comment

Choose a reason for hiding this comment

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

Seems good to me.

@rcomer rcomer added this to the v3.11.0 milestone May 19, 2026
@rcomer rcomer merged commit dbfc4c8 into matplotlib:main May 19, 2026
21 checks passed
@timhoffm timhoffm deleted the doc-remove-pyplot-text branch May 19, 2026 17:04
rcomer added a commit that referenced this pull request May 19, 2026
…704-on-v3.11.x

Backport PR #31704 on branch v3.11.x (DOC: Remove pyplot text example)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation: examples files in galleries/examples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants