Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a05fb1e

Browse files
author
apodemus
committed
'add Annulus patch for making elliptical annuli'
1 parent e4697e7 commit a05fb1e

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

lib/matplotlib/patches.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1608,8 +1608,6 @@ def __init__(self, xy, r, width, angle=0.0, **kwargs):
16081608
self.width = width
16091609
self.angle = angle
16101610
self._path = None
1611-
# Note: This cannot be calculated until this is added to an Axes
1612-
self._patch_transform = transforms.IdentityTransform()
16131611

16141612
def _transform_verts(self, verts, a, b):
16151613
center = (self.convert_xunits(self.center[0]),
@@ -1624,11 +1622,10 @@ def _transform_verts(self, verts, a, b):
16241622
return tr.transform(verts)
16251623

16261624
def _recompute_path(self):
1627-
16281625
# circular arc
16291626
arc = Path.arc(0, 360)
16301627

1631-
# annulus needs to draw the outer ring
1628+
# annulus needs to draw an outer ring
16321629
# followed by a reversed and scaled inner ring
16331630
a, b, w = self.a, self.b, self.width
16341631
v1 = self._transform_verts(arc.vertices, a, b)

0 commit comments

Comments
 (0)