Skip to content

Fix: Do not use numeric tolerances for axline special cases #28987

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
Oct 17, 2024

Conversation

timhoffm
Copy link
Member

vertical lines (infinite slope) and two identical points as input need special handling in AxLine. The detection was using numeric tolerances, which lead to false-positive detection in cases that are close to but not exactly those special cases.

This PR removes the tolerances. The argument is the same as for the similar case #28386 (comment)

Closes #28870.

vertical lines (infinite slope) and two identical points as input need special handling in AxLine. The detection was using numeric tolerances, which lead to false-positive detection in cases that are close to but not exactly those special cases.

This PR removes the tolerances. The argument is the same as for the similar case matplotlib#28386 (comment)

Closes matplotlib#28870.
@timhoffm timhoffm added this to the v3.10.0 milestone Oct 17, 2024
Copy link
Contributor

@scottshambaugh scottshambaugh left a comment

Choose a reason for hiding this comment

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

This closes out the last of the comparisons called out in this comment, lgtm! #28386 (comment)

@scottshambaugh
Copy link
Contributor

This might be better considered as a bugfix for the 3.9.3 milestone.

@timhoffm timhoffm modified the milestones: v3.10.0, v3.9.3 Oct 17, 2024
@scottshambaugh scottshambaugh added the PR: bugfix Pull requests that fix identified bugs label Oct 17, 2024
@ksunden ksunden merged commit c236102 into matplotlib:main Oct 17, 2024
44 of 46 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Oct 17, 2024
QuLogic added a commit that referenced this pull request Oct 18, 2024
…987-on-v3.9.x

Backport PR #28987 on branch v3.9.x (Fix: Do not use numeric tolerances for axline special cases)
@timhoffm timhoffm deleted the fix-axline branch November 8, 2024 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: bugfix Pull requests that fix identified bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: axline doesn't work with some axes scales
3 participants