skspatial.objects.Circle.plot_2d

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

Plot the circle in 2D.

Parameters
ax_2dAxes

Instance of Axes.

kwargsdict, optional

Additional keywords passed to matplotlib.patches.Circle.

Examples

>>> import matplotlib.pyplot as plt
>>> from skspatial.objects import Circle
>>> circle = Circle([-2, 3], 3)
>>> fig, ax = plt.subplots()
>>> circle.plot_2d(ax, fill=False)
>>> circle.point.plot_2d(ax)
>>> limits = plt.axis([-10, 10, -10, 10])

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

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