8000 Update get_transform method to adjust tolerance for np.isclose based … · matplotlib/matplotlib@87682c7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 87682c7

Browse files
author
Andresporcruz
committed
Update get_transform method to adjust tolerance for np.isclose based on view limits
1 parent 749676e commit 87682c7

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

axline_large_slope_modified.png

8.71 KB
Loading

axline_small_slope_modified.png

A5B2
8.71 KB
Loading

test_axline_modified.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import matplotlib
2+
import matplotlib.pyplot as plt
3+
matplotlib.use('TkAgg')
4+
plt.axline(xy1=(0, 0), slope=1E-8)
5+
plt.show()
6+
7+
# compare
8+
9+
import matplotlib
10+
import matplotlib.pyplot as plt
11+
matplotlib.use('TkAgg')
12+
plt.axline(xy1=(0, 0), slope=1.1E-8)
13+
plt.show()

0 commit comments

Comments
 (0)
0