skspatial.objects.Point.plot_2d

Point.plot_2d(ax_2d: matplotlib.axes._axes.Axes, **kwargs) None[source]

Plot the point 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 Point
>>> _, ax = plt.subplots()
>>> Point([1, 2]).plot_2d(ax, c='k', s=100)

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

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