make_ellipse_data_points#
- pyxem.utils.ransac_ellipse_tools.make_ellipse_data_points(x, y, a, b, r, nt=20, use_focus=True)[source]#
Get an ellipse position list.
- Parameters:
x, y (scalars) – Centre position of the ellipse.
a, b (scalars) – Semi lengths
r (scalar) – Rotation, in theta
nt (int, optional) – Number of data positions, default 20
use_focus (bool) – If True, (x, y) will be the focus. If False, (x, y) will be centre of the ellipse.
- Returns:
data – [[x0, y0], [x1, y1], …]
- Return type:
Examples
>>> import pyxem.utils.ransac_ellipse_tools as ret >>> data = ret.make_ellipse_data_points(5, 9, 8, 4, np.pi/3)
Using all the arguments
>>> data = ret.make_ellipse_data_points(5, 9, 8, 4, 0, nt=40, ... use_focus=False)
Examples using make_ellipse_data_points
#
Determining Elliptic Distortion
Determining Elliptic Distortion