@@ -1563,15 +1563,17 @@ def __init__(self, xy, r, width, angle=0.0, **kwargs):
1563
1563
xy : (float, float)
1564
1564
xy coordinates of annulus centre.
1565
1565
r : float or (float, float)
1566
- The radius, or semi-major axes
1567
- - If float: radius of the outer circle
1568
- - If two floats: semi-major and -minor axes of outer
1569
- ellipse
1566
+ The radius, or semi-axes.
1567
+ - If float: radius of the outer circle.
1568
+ - If two floats: semi-major and -minor axes of outer ellipse.
1570
1569
width : float
1571
- Width (thickness) of the annulus ring.
1572
- angle: float, default=0
1573
- Rotation angle in degrees (anti-clockwise). Ignored for circular
1574
- annuli (ie. if *r* is a scalar).
1570
+ Width (thickness) of the annular ring. The width is measured inward
1571
+ from the outer ellipse so that for the inner ellipse the semi-axes
1572
+ are given by `r - width`. `width` must be less than or equal to the
1573
+ semi-minor axis.
1574
+ angle : float, default=0
1575
+ Rotation angle in degrees (anti-clockwise from the positive
1576
+ x-axis). Ignored for circular annuli (ie. if *r* is a scalar).
1575
1577
1576
1578
Valid kwargs are:
1577
1579
@@ -1614,15 +1616,16 @@ def get_center(self):
1614
1616
1615
1617
def set_width (self , width ):
1616
1618
"""
1617
- Set the width (thickness) of the annulus ring.
1619
+ Set the width (thickness) of the annulus ring. The width is measured
1620
+ inwards from the outer ellipse.
1618
1621
1619
1622
Parameters
1620
1623
----------
1621
1624
width : float
1622
1625
"""
1623
1626
if min (self .a , self .b ) <= width :
1624
1627
raise ValueError (
1625
- 'Width of annulus must be smaller than semi-minor axis' )
1628
+ 'Width of annulus must be less than or equal semi-minor axis' )
1626
1629
1627
1630
self ._width = width
1628
1631
self ._path = None
@@ -1700,7 +1703,6 @@ def set_radii(self, r):
1700
1703
def get_radii (self ):
1701
1704
return self .a , self .b
1702
1705
1703
- # alias
1704
1706
radii = property (get_radii , set_radii )
1705
1707
1706
1708
def _transform_verts (self , verts , a , b ):
0 commit comments