Set the spine to be arc-like.
(self, center, radius, theta1, theta2)
| 86 | self._patch_transform = mtransforms.IdentityTransform() |
| 87 | |
| 88 | def set_patch_arc(self, center, radius, theta1, theta2): |
| 89 | """Set the spine to be arc-like.""" |
| 90 | self._patch_type = 'arc' |
| 91 | self._center = center |
| 92 | self._width = radius * 2 |
| 93 | self._height = radius * 2 |
| 94 | self._theta1 = theta1 |
| 95 | self._theta2 = theta2 |
| 96 | self._path = mpath.Path.arc(theta1, theta2) |
| 97 | # arc drawn on axes transform |
| 98 | self.set_transform(self.axes.transAxes) |
| 99 | self.stale = True |
| 100 | |
| 101 | def set_patch_circle(self, center, radius): |
| 102 | """Set the spine to be circular.""" |
no test coverage detected