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 1dbc782 + 11b5e18 commit 63bee22Copy full SHA for 63bee22
1 file changed
lib/matplotlib/bezier.py
@@ -288,10 +288,10 @@ def axis_aligned_extrema(self):
288
0`
289
"""
290
n = self.degree
291
+ if n <= 1:
292
+ return np.array([]), np.array([])
293
Cj = self.polynomial_coefficients
294
dCj = np.arange(1, n+1)[:, None] * Cj[1:]
- if len(dCj) == 0:
- return np.array([]), np.array([])
295
dims = []
296
roots = []
297
for i, pi in enumerate(dCj.T):
0 commit comments