How to Plot a Circle in Matplotlib
To plot a circle in Matplotlib, we can use any of the following methods: matplotlib.patches.Circle() method Circle Equation Scatter plot of points matplotlib.patches.Circle() Method to Plot a Circle in Matplotlib Syntax: matplotlib.patches.Circle((x, y), r=5, **kwargs) Where, (x, y) is the center of the circle and r is the radius with a default value of 5. We need to add a circle to axes with the add_artist method as Circle is a subclass of Artist.