@@ -1564,28 +1564,28 @@ def __str__(self):
15641564 pars = (self .center [0 ], self .center [1 ],
15651565 self .a , self .width , self .angle )
15661566 else :
1567- fmt = "Annulus(xy=(%s, %s), a= %s, b=%s , width=%s, angle=%s)"
1567+ fmt = "Annulus(xy=(%s, %s), r=( %s, %s) , width=%s, angle=%s)"
15681568 pars = (self .center [0 ], self .center [1 ],
15691569 self .a , self .b , self .width , self .angle )
15701570 return fmt % pars
15711571
15721572 @docstring .dedent_interpd
15731573 def __init__ (self , xy , r , width , angle = 0.0 , ** kwargs ):
15741574 """
1575- *xy*
1576- center of annulus
1575+ xy : array_like
1576+ center of annulus
15771577
1578- *r*
1579- if float:
1580- radius of the outer circle
1581- if array-like of size 2:
1582- semi-major and -minor axes of outer ellipse
1578+ r : scalar or 1D array_like
1579+ The radius, or semi-major axes
1580+ - If float: radius of the outer circle
1581+ - If array_like of size 2: semi-major and -minor axes of outer ellipse
15831582
1584- * width*
1583+ width : float
15851584 width of the annulus
15861585
1587- *angle*
1588- rotation in degrees (anti-clockwise)
1586+ angle: float, optional
1587+ rotation in degrees (anti-clockwise). Ignored for circular annuli (`r` is a scalar)
1588+
15891589
15901590 Valid kwargs are:
15911591 %(Patch)s
@@ -1602,7 +1602,7 @@ def __init__(self, xy, r, width, angle=0.0, **kwargs):
16021602
16031603 if min (self .a , self .b ) <= width :
16041604 raise ValueError (
1605- 'Width should be smaller than semi-minor axis' )
1605+ 'Width of annulus should be smaller than semi-minor axis' )
16061606
16071607 self .center = xy
16081608 self .width = width
0 commit comments