-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
PathSimplifier fails to ignore CLOSEPOLY vertices #17914
Copy link
Copy link
Closed
Labels
Difficulty: Mediumhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesGood first issueOpen a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!status: confirmed bugtopic: path handling
Milestone
Metadata
Metadata
Assignees
Labels
Difficulty: Mediumhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesGood first issueOpen a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!status: confirmed bugtopic: path handling
Bug report
Bug summary
This bug does not seem to have surfaced anywhere yet, but
Path's withNaNvertices atCLOSEPOLYcan come throughPathNanRemoverin a "correct" state but thenPathSimplifiercan sometimes break it:Code for reproduction/Actual Outcome
Expected outcome
The values of the vertices in a
CLOSEPOLYshould always be ignored, in favor of the most recentMOVETO's vertex values:Matplotlib version
print(matplotlib.get_backend())):