Skip to content

Fix bug with PGF hatch linewidth and color - #32254

Merged
tacaswell merged 1 commit into
matplotlib:mainfrom
ayshih:pgf_hatch_stroke
Sep 3, 2026
Merged

tacaswell merged 1 commit into
matplotlib:mainfrom
ayshih:pgf_hatch_stroke

Conversation

@ayshih

@ayshih ayshih commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

PR summary

This PR fixes a bug with the PGF backend where the linewidth and color for a patch's hatch pattern are not actually set, which means the linewidth/color are taken from the patch's stroke. Of course, this bug is easily missed when the hatch pattern is intended to have same linewidth/color as the stroke.

AI Disclosure

No AI was used.

PR quality check

  • Use an expressive title, e.g. "Fix title font property precedence"
  • New and changed code is tested
  • [N/A] Plotting related features are demonstrated in an example
  • [N/A] New features and API changes have release notes
  • [N/A] Documentation complies with general and docstring guidelines

@ayshih

ayshih commented Aug 28, 2026

Copy link
Copy Markdown
Contributor Author

I missed that the linewidth part of this bug was reported in #15491, and #24263 as the proposed fix. This PR supersedes #24263 by also fixing the color part of this bug.

@ayshih
ayshih marked this pull request as ready for review August 28, 2026 18:30
@tacaswell
tacaswell merged commit 8808684 into matplotlib:main Sep 3, 2026
41 checks passed
@ayshih
ayshih deleted the pgf_hatch_stroke branch September 3, 2026 19:42
@QuLogic QuLogic mentioned this pull request Sep 3, 2026
6 tasks
@ayshih ayshih added this to the v3.11.2 milestone Sep 3, 2026
@QuLogic

QuLogic commented Sep 3, 2026

Copy link
Copy Markdown
Member

@meeseeksdev backport to v3.11.x

QuLogic added a commit that referenced this pull request Sep 3, 2026
…254-on-v3.11.x

Backport PR #32254 on branch v3.11.x (Fix bug with PGF hatch linewidth and color)
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.

4 participants