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

Skip to content

Close star polygons #30069

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 18, 2025
Merged

Close star polygons #30069

merged 1 commit into from
May 18, 2025

Conversation

jkseppan
Copy link
Member

@jkseppan jkseppan commented May 18, 2025

When '*' hatching was used and you zoomed in (especially in vector formats), the top of the star was not joined quite right. Using closepoly as the last operation fixes this.

Before:
SCR-20250518-obge

After:
SCR-20250518-obqh

See also #29392 which fills the stars.

Copy link
Member

@oscargus oscargus left a comment

Choose a reason for hiding this comment

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

As I happened to note that the clip_path-test was updated: is this enough and the newly added test can be removed? Of course, it can be good to have an explicit test for this (in case someone modifies the clip_path-test and removes the hatch.

@jkseppan
Copy link
Member Author

As I happened to note that the clip_path-test was updated: is this enough and the newly added test can be removed? Of course, it can be good to have an explicit test for this (in case someone modifies the clip_path-test and removes the hatch.

Perhaps the clip_path test is enough. I was planning to make a zoomed-in test to really show the change, but of course the hatch markers are in display coordinates so you have to zoom in the file viewer and not when producing the image.

When '*' hatching was used and you zoomed in (especially in vector
formats), the top of the star was not joined quite right. Using
closepoly as the last operation fixes this.
@rcomer rcomer merged commit f4346b5 into matplotlib:main May 18, 2025
40 checks passed
@rcomer rcomer added this to the v3.11.0 milestone May 18, 2025
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.

3 participants