Movatterモバイル変換


[0]ホーム

URL:


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

Commit63bee22

Browse files
authored
Merge pull request#18182 from meeseeksmachine/auto-backport-of-pr-17994-on-v3.3.x
Backport PR#17994 on branch v3.3.x (Special case degree-1 Bezier curves.)
2 parents1dbc782 +11b5e18 commit63bee22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎lib/matplotlib/bezier.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,10 @@ def axis_aligned_extrema(self):
288288
0`
289289
"""
290290
n=self.degree
291+
ifn<=1:
292+
returnnp.array([]),np.array([])
291293
Cj=self.polynomial_coefficients
292294
dCj=np.arange(1,n+1)[:,None]*Cj[1:]
293-
iflen(dCj)==0:
294-
returnnp.array([]),np.array([])
295295
dims= []
296296
roots= []
297297
fori,piinenumerate(dCj.T):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp