RightParabola#
- class data_morph.shapes.points.RightParabola(dataset: Dataset)[source]#
Bases:
PointCollection
Class for the right parabola shape.
- Parameters:
dataset (Dataset) – The starting dataset to morph into other shapes.
- distance(x: Number, y: Number) float #
Calculate the minimum distance from the points of this shape to a point (x, y).
- Parameters:
x (numbers.Number) – Coordinates of a point in 2D space.
y (numbers.Number) – Coordinates of a point in 2D space.
- Returns:
The minimum distance from the points of this shape to the point (x, y).
- Return type:
- plot(ax: Axes = None) Axes #
Plot the shape.
- Parameters:
ax (matplotlib.axes.Axes, optional) – An optional
Axes
object to plot on.- Returns:
The
Axes
object containing the plot.- Return type:
- points#
An array of (x, y) values representing an arrangement of points.
- Type: