Scatter#
- class data_morph.shapes.points.Scatter(dataset: Dataset)[source]#
Bases:
PointCollection
Class for the scatter shape: a cloud of randomly-scattered points.
- Parameters:
dataset (Dataset) – The starting dataset to morph into other shapes.
- distance(x: Number, y: Number) int [source]#
No-op that allows returns 0 so that all perturbations are accepted.
- 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: