-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix axline
for slopes < 1E-8
#28431
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
Fix axline
for slopes < 1E-8
#28431
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | 8000||
---|---|---|---|---|
@@ -0,0 +1,13 @@ | ||||
import matplotlib | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of adding a new test file, please add another test to the axline tests matplotlib/lib/matplotlib/tests/test_axes.py Line 4977 in c010a36
|
||||
import matplotlib.pyplot as plt | ||||
matplotlib.use('TkAgg') | ||||
plt.axline(xy1=(0, 0), slope=1E-8) | ||||
plt.show() | ||||
|
||||
# compare | ||||
|
||||
import matplotlib | ||||
import matplotlib.pyplot as plt | ||||
Check failure on line 10 in test_axline_modified.py
|
||||
matplotlib.use('TkAgg') | ||||
plt.axline(xy1=(0, 0), slope=1.1E-8) | ||||
plt.show() | ||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you feel that this information is critical, please instead make it a logging message https://matplotlib.org/devdocs/devel/coding_guide.html#using-logging-for-debug-messages
But is this information useful now that you've fixed this bug?