Thanks to visit codestin.com Credit goes to github.com
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.
2 parents 57c8baa + 1e6352a commit 096d0acCopy full SHA for 096d0ac
1 file changed
lib/matplotlib/bezier.py
@@ -287,10 +287,10 @@ def axis_aligned_extrema(self):
287
0`
288
"""
289
n = self.degree
290
+ if n <= 1:
291
+ return np.array([]), np.array([])
292
Cj = self.polynomial_coefficients
293
dCj = np.arange(1, n+1)[:, None] * Cj[1:]
- if len(dCj) == 0:
- return np.array([]), np.array([])
294
dims = []
295
roots = []
296
for i, pi in enumerate(dCj.T):
0 commit comments