@@ -1594,16 +1594,16 @@ def __init__(self, xy, r, width, angle=0.0, **kwargs):
15941594 self ._width = width
15951595 self .angle = angle
15961596 self ._path = None
1597-
1597+
15981598 def __str__ (self ):
15991599 if self .a == self .b :
16001600 r = self .a
16011601 else :
16021602 r = (self .a , self .b )
16031603
16041604 return "Annulus(xy=(%s, %s), r=%s, width=%s, angle=%s)" % \
1605- (* self .center , r , self .width , self .angle )
1606-
1605+ (* self .center , r , self .width , self .angle )
1606+
16071607 def set_center (self , xy ):
16081608 """
16091609 Set the center of the annulus.
@@ -1620,7 +1620,7 @@ def get_center(self):
16201620 return self ._center
16211621
16221622 center = property (get_center , set_center )
1623-
1623+
16241624 def set_width (self , width ):
16251625 """
16261626 Set the width (thickness) of the annulus ring.
@@ -1639,7 +1639,7 @@ def get_width(self):
16391639 return self ._width
16401640
16411641 width = property (get_width , set_width )
1642-
1642+
16431643 def set_angle (self , angle ):
16441644 """
16451645 Set the tilt angle of the annulus.
@@ -1656,42 +1656,43 @@ def get_angle(self):
16561656 return self ._angle
16571657
16581658 angle = property (get_angle , set_angle )
1659-
1659+
16601660 def set_semimajor (self , a ):
16611661 """
16621662 Set the semi-major axis *a* of the annulus.
1663-
1663+
16641664 Parameters
16651665 ----------
16661666 a : float
16671667 """
16681668 self .a = float (a )
16691669 self .stale = True
1670-
1670+
16711671 def set_semiminor (self , b ):
16721672 """
16731673 Set the semi-minor axis *b* of the annulus.
1674-
1674+
16751675 Parameters
16761676 ----------
16771677 b : float
16781678 """
16791679 self .b = float (b )
16801680 self .stale = True
1681-
1681+
16821682 def set_radii (self , radii ):
16831683 """
1684- Set the both the semi-major (*a*) and -minor radii (*b*) of the annulus.
1685-
1684+ Set the both the semi-major (*a*) and -minor radii (*b*) of the
1685+ annulus.
1686+
16861687 Parameters
16871688 ----------
16881689 radii : (float, float)
16891690 """
16901691 self .a , self .b = radii
16911692 self .stale = True
1692-
1693+
16931694 def _transform_verts (self , verts , a , b ):
1694- return transforms .Affine2D () \
1695+ return transforms .Affine2D () \
16951696 .scale (* self ._convert_xy_units ((a , b ))) \
16961697 .rotate_deg (self .angle ) \
16971698 .translate (* self ._convert_xy_units (self .center )) \
0 commit comments