skspatial.objects.Points.plot_2d

Points.plot_2d(ax_2d: Axes, **kwargs) None[source]

Plot the points on a 2D scatter plot.

Parameters
ax_2dAxes

Instance of Axes.

kwargsdict, optional

Additional keywords passed to scatter().

Examples

>>> import matplotlib.pyplot as plt
>>> from skspatial.objects import Points
>>> fig, ax = plt.subplots()
>>> points = Points([[1, 2], [3, 4], [-4, 2], [-2, 3]])
>>> points.plot_2d(ax, c='k')

(Source code, png, hires.png, pdf)

../../../_images/skspatial-objects-Points-plot_2d-1.png