@@ -1570,35 +1570,35 @@ def __str__(self):
15701570 def __init__ (self , xy , r , width , angle = 0.0 , ** kwargs ):
15711571 """
15721572 xy : (float, float)
1573- xy coordinates of annulus centre
1574- r : scalar or 1D array_like
1573+ xy coordinates of annulus centre.
1574+ r : float or (float, float)
15751575 The radius, or semi-major axes
15761576 - If float: radius of the outer circle
1577- - If array_like of size 2 : semi-major and -minor axes of outer
1577+ - If two floats : semi-major and -minor axes of outer
15781578 ellipse
15791579 width : float
1580- Width of the annulus
1581- angle: float, optional
1580+ Width of the annulus.
1581+ angle: float, default=0
15821582 Rotation angle in degrees (anti-clockwise). Ignored for circular
1583- annuli (ie. if `r` is a scalar).
1583+ annuli (ie. if *r* is a scalar).
15841584
15851585 Valid kwargs are:
15861586
15871587 %(Patch_kwdoc)s
15881588 """
1589- Patch .__init__ (self , ** kwargs )
1589+ super () .__init__ (** kwargs )
15901590
15911591 if np .shape (r ) == (2 ,):
15921592 self .a , self .b = r
15931593 elif np .shape (r ) == ():
15941594 self .a = self .b = float (r )
15951595 else :
15961596 raise ValueError (
1597- 'r parameter should be either float, or array_like of size 2' )
1597+ "Parameter 'r' must be one or two floats" )
15981598
15991599 if min (self .a , self .b ) <= width :
16001600 raise ValueError (
1601- 'Width of annulus should be smaller than semi-minor axis' )
1601+ 'Width of annulus must be smaller than semi-minor axis' )
16021602
16031603 self .center = xy
16041604 self .width = width
0 commit comments