MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / __init__

Method __init__

lib/matplotlib/patches.py:1342–1358  ·  view source on GitHub ↗

A wedge centered at *x*, *y* center with radius *r* that sweeps *theta1* to *theta2* (in degrees). If *width* is given, then a partial wedge is drawn from inner radius *r* - *width* to outer radius *r*. Valid keyword arguments are: %(Patch:kwdoc)s

(self, center, r, theta1, theta2, *, width=None, **kwargs)

Source from the content-addressed store, hash-verified

1340
1341 @_docstring.interpd
1342 def __init__(self, center, r, theta1, theta2, *, width=None, **kwargs):
1343 """
1344 A wedge centered at *x*, *y* center with radius *r* that
1345 sweeps *theta1* to *theta2* (in degrees). If *width* is given,
1346 then a partial wedge is drawn from inner radius *r* - *width*
1347 to outer radius *r*.
1348
1349 Valid keyword arguments are:
1350
1351 %(Patch:kwdoc)s
1352 """
1353 super().__init__(**kwargs)
1354 self.center = center
1355 self.r, self.width = r, width
1356 self.theta1, self.theta2 = theta1, theta2
1357 self._patch_transform = transforms.IdentityTransform()
1358 self._recompute_path()
1359
1360 def _recompute_path(self):
1361 # Inner and outer rings are connected unless the annulus is complete

Callers

nothing calls this directly

Calls 2

_recompute_pathMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected