Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 61ea269

Browse filesBrowse files
committed
MNT:
1 parent eeda1d1 commit 61ea269
Copy full SHA for 61ea269

File tree

Expand file treeCollapse file tree

2 files changed

+4
-3
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-3
lines changed

‎lib/matplotlib/axis.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axis.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,8 @@ def _update_ticks(self, renderer):
10511051
loct = None
10521052
continue
10531053
if ((loct is None) or
1054-
(not mtransforms.interval_contains(inter, loct))):
1054+
(not mtransforms.interval_contains(inter,
1055+
loct, rtol=1e-10))):
10551056
continue
10561057
ticks_to_draw.append(tick)
10571058

‎lib/matplotlib/transforms.py

Copy file name to clipboardExpand all lines: lib/matplotlib/transforms.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2892,7 +2892,7 @@ def nonsingular(vmin, vmax, expander=0.001, tiny=1e-15, increasing=True):
28922892
return vmin, vmax
28932893

28942894

2895-
def interval_contains(interval, val, rtol=1e-10):
2895+
def interval_contains(interval, val, rtol=0):
28962896
"""
28972897
Check, inclusively, whether an interval includes a given value.
28982898
@@ -2904,7 +2904,7 @@ def interval_contains(interval, val, rtol=1e-10):
29042904
Value to check is within interval.
29052905
rtol : scalar
29062906
Tolerance slippage allowed outside of this interval. Default
2907-
1e-10 * (b - a).
2907+
0 * (b - a).
29082908
29092909
Returns
29102910
-------

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.