Skip to content

Commit 15ace42

Browse files
ckcherry23oscargus
andauthored
Refactor ellipse path for brevity
Co-authored-by: Oscar Gustafsson <[email protected]>
1 parent 4137380 commit 15ace42

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/patches.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2366,8 +2366,7 @@ def __call__(self, x0, y0, width, height, mutation_size):
23662366
b = height / math.sqrt(2)
23672367
trans = Affine2D().scale(a, b).translate(x0 + width / 2,
23682368
y0 + height / 2)
2369-
ellipse_path = trans.transform_path(Path.unit_circle())
2370-
return ellipse_path
2369+
return trans.transform_path(Path.unit_circle())
23712370

23722371
@_register_style(_style_list)
23732372
class LArrow:

0 commit comments

Comments
 (0)