8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2a5dc1 commit 1b12e91Copy full SHA for 1b12e91
lib/matplotlib/bezier.py
@@ -10,11 +10,12 @@
10
import matplotlib.cbook as cbook
11
12
# same algorithm as 3.8's math.comb
13
+@np.vectorize
14
def _comb(n, k):
15
k = min(k, n - k)
16
i = np.arange(1, k + 1)
17
return np.prod((n + 1 - i)/i).astype(int)
-_comb = np.vectorize(_comb)
18
+
19
20
class NonIntersectingPathException(ValueError):
21
pass
@@ -220,6 +221,7 @@ def find_bezier_t_intersecting_with_closedpath(
220
221
start = middle
222
start_inside = middle_inside
223
224
225
class BezierSegment:
226
"""
227
A d-dimensional Bezier segment.
0 commit comments