File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
galleries/examples/shapes_and_collections Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 1515from matplotlib .transforms import Affine2D
1616
1717import numpy as np
18+
1819from typing import Tuple
1920
2021
2122def getMinorMajor (ellipse : Ellipse ) -> Tuple [list , list ]:
22- """Calculates the end points of minor and major axis of an ellipse.
23+ """
24+ Calculates the end points of minor and major axis of an ellipse.
2325
24- Args:
25- ellipse (Ellipse): Ellipse patch.
26+ Parameters
27+ ----------
28+ ellipse : ~matplotlib.patches.Ellipse
29+ Ellipse patch.
2630
27- Returns:
28- Tuple[list, list]: Coordinates of minor end points and major end points.
31+ Returns
32+ -------
33+ ~typing.Tuple[list, list]
2934 """
3035 # Calculate the endpoints of the minor axis
3136 x0_minor = ellipse .center [0 ] - ellipse .height / 2 * np .sin (
You can’t perform that action at this time.
0 commit comments