Skip to content

Commit 498bcdd

Browse files
committed
Use np.inf instead of sys.maxsize
1 parent e66cd0f commit 498bcdd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/mpl_toolkits/mplot3d/art3d.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"""
99

1010
import math
11-
import sys
1211

1312
import numpy as np
1413

@@ -737,7 +736,7 @@ def set_zsort(self, zsort):
737736
def nansafe(func):
738737
def f(x):
739738
value = func(x)
740-
return sys.maxsize if np.isnan(value) else value
739+
return np.inf if np.isnan(value) else value
741740
return f
742741

743742
self._zsortfunc = nansafe(self._zsort_functions[zsort])

0 commit comments

Comments
 (0)