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

Sign up
Appearance settings

Commit e2a1a63

Browse files
committed
MNT:
1 parent f49d364 commit e2a1a63

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

‎lib/matplotlib/axis.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,8 @@ def _update_ticks(self, renderer):
10721072
loct = None
10731073
continue
10741074
if ((loct is None) or
1075-
(not mtransforms.interval_contains(inter, loct))):
1075+
(not mtransforms.interval_contains(inter,
1076+
loct, rtol=1e-10))):
10761077
continue
10771078
ticks_to_draw.append(tick)
10781079

‎lib/matplotlib/transforms.py

Lines 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)

AltStyle によって変換されたページ (->オリジナル) /