Parameters ---------- xy : (float, float) xy coordinates of ellipse centre. width : float Total length (diameter) of horizontal axis. height : float Total length (diameter) of vertical axis. angle : float, default:
(self, xy, width, height, *, angle=0, **kwargs)
| 1709 | |
| 1710 | @_docstring.interpd |
| 1711 | def __init__(self, xy, width, height, *, angle=0, **kwargs): |
| 1712 | """ |
| 1713 | Parameters |
| 1714 | ---------- |
| 1715 | xy : (float, float) |
| 1716 | xy coordinates of ellipse centre. |
| 1717 | width : float |
| 1718 | Total length (diameter) of horizontal axis. |
| 1719 | height : float |
| 1720 | Total length (diameter) of vertical axis. |
| 1721 | angle : float, default: 0 |
| 1722 | Rotation in degrees anti-clockwise. |
| 1723 | |
| 1724 | Notes |
| 1725 | ----- |
| 1726 | Valid keyword arguments are: |
| 1727 | |
| 1728 | %(Patch:kwdoc)s |
| 1729 | """ |
| 1730 | super().__init__(**kwargs) |
| 1731 | |
| 1732 | self._center = xy |
| 1733 | self._width, self._height = width, height |
| 1734 | self._angle = angle |
| 1735 | self._path = Path.unit_circle() |
| 1736 | # Required for EllipseSelector with axes aspect ratio != 1 |
| 1737 | # The patch is defined in data coordinates and when changing the |
| 1738 | # selector with square modifier and not in data coordinates, we need |
| 1739 | # to correct for the aspect ratio difference between the data and |
| 1740 | # display coordinate systems. |
| 1741 | self._aspect_ratio_correction = 1.0 |
| 1742 | # Note: This cannot be calculated until this is added to an Axes |
| 1743 | self._patch_transform = transforms.IdentityTransform() |
| 1744 | |
| 1745 | def _recompute_transform(self): |
| 1746 | """ |
nothing calls this directly
no test coverage detected