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)
| 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 |
nothing calls this directly
no test coverage detected