How to Draw a Circle Using Matplotlib in Python? Last Updated : 13 Sep, 2021 Comments Improve Suggest changes Like Article Like Report A Circle is a mathematical figure formed by joining all points lying on the same plane and are at equal distance from a given point. We can plot a circle in python using Matplotlib. There are multiple ways to plot a Circle in python using Matplotlib. Method 1: Using matplotlib.patches.Circle() function. Matplotlib has a special function matplotlib.patches.Circle() in order to plot circles. Syntax: class matplotlib.patches.Circle(xy, radius=5, **kwargs) Example 1: Plotting a colored Circle using matplotlib.patches.Circle() Python3 # Demonstrating use of matplotlib.patches.Circle() function # to plot a colored Circle import matplotlib.pyplot as plt figure, axes = plt.subplots() Drawing_colored_circle = plt.Circle(( 0.6 , 0.6 ), 0.2 ) axes.set_aspect( 1 ) axes.add_artist( Drawing_colored_circle ) plt.title( 'Colored Circle' ) plt.show() Output: Example 2: Plotting an un-colored Circle using matplotlib.patches.Circle() Python3 # Demonstrating use of matplotlib.patches.Circle() function # to plot an un-colored Circle import matplotlib.pyplot as plt figure, axes = plt.subplots() Drawing_uncolored_circle = plt.Circle( (0.6, 0.6 ), 0.3 , fill = False ) axes.set_aspect( 1 ) axes.add_artist( Drawing_uncolored_circle ) plt.title( 'Circle' ) plt.show() Output: Method 2: Using Circle Equation Example 1: Plotting a Circle using Parametric equation of a circle Python3 # Program to plot a Circle # using Parametric equation of a Circle import numpy as np import matplotlib.pyplot as plt theta = np.linspace( 0 , 2 * np.pi , 150 ) radius = 0.4 a = radius * np.cos( theta ) b = radius * np.sin( theta ) figure, axes = plt.subplots( 1 ) axes.plot( a, b ) axes.set_aspect( 1 ) plt.title( 'Parametric Equation Circle' ) plt.show() Output: Example 2: Using Center-Radius form of a circle equation Python3 # Program to plot a Circle # using Center-Radius form of circle equation import numpy as np import matplotlib.pyplot as plt x = np.linspace( -0.7 , 0.7 , 150 ) y = np.linspace( -0.7 , 0.7 , 150 ) a, b = np.meshgrid( x , y ) C = a ** 2 + b ** 2 - 0.2 figure, axes = plt.subplots() axes.contour( a , b , C , [0] ) axes.set_aspect( 1 ) plt.title( 'Center-Radius form Circle' ) plt.show() Output: Method 3: Using the Scatter Plot of points Example: Python3 # Program to plot a Circle # using Scatter plot of points import matplotlib.pyplot as plt plt.scatter( 0 , 0 , s = 7000 ) plt.title( 'Circle' ) plt.xlim( -0.85 , 0.85 ) plt.ylim( -0.95 , 0.95 ) plt.title( "Scatter plot of points Circle" ) plt.show() Output: Comment More infoAdvertise with us Next Article How to Draw a Circle Using Matplotlib in Python? vanshgaur14866 Follow Improve Article Tags : Technical Scripter Python Technical Scripter 2020 Python-matplotlib Practice Tags : python Similar Reads How to plot a complex number in Python using Matplotlib ? In this article we will learn how to plot complex number in Python using Matplotlib. Let's discuss some concepts : Matplotlib : Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays and designe 3 min read How to Draw Shapes in Matplotlib with Python Matplotlib provides a collection of classes and functions that allow you to draw and manipulate various shapes on your plots. Whether you're adding annotations, creating diagrams, or visualizing data, understanding how to use these tools effectively will enhance your ability to create compelling vis 2 min read How to Add Labels in a Plot using Python? Prerequisites: Python Matplotlib In this article, we will discuss adding labels to the plot using Matplotlib in Python. But first, understand what are labels in a plot. The heading or sub-heading written at the vertical axis (say Y-axis) and the horizontal axis(say X-axis) improves the quality of u 3 min read Plotting Sine and Cosine Graph using Matplotlib in Python Data visualization and Plotting is an essential skill that allows us to spot trends in data and outliers. With the help of plots, we can easily discover and present useful information about the data. In this article, we are going to plot a sine and cosine graph using Matplotlib in Python. Matplotlib 3 min read How to Add Axes to a Figure in Matplotlib with Python? Matplotlib is a library in Python used to create figures and provide tools for customizing it. It allows plotting different types of data, geometrical figures. In this article, we will see how to add axes to a figure in matplotlib. We can add axes to a figure in matplotlib by passing a list argument 2 min read Draw a circle using Arcade in Python3 The arcade library is a high-tech Python Package with advanced set of tools for making 2D games with gripping graphics and sound. It is Object-oriented and is especially built for Python 3.6 and above versions. Arcade inbuilt functions to draw circle :- 1. arcade.draw_circle_outline( ) : This functi 3 min read How to add a grid on a figure in Matplotlib ? Matplotlib library is widely used for plotting graphs. In many graphs, we require to have a grid to improve readability. Grids are created by using grid() function in the Pyplot sublibrary. In this article, we will see how to add grid in Matplotlb. Add a Grid on a Figure in MatplotlibBelow are the w 3 min read Matplotlib.axes.Axes.imshow() in Python Matplotlib is a library in Python and it is numerical - mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., and sets the coordinate system. And the instances of Axes supports callbacks through a callbacks attribute. 3 min read Plot a Pie Chart in Python using Matplotlib A Pie Chart is a circular statistical plot that can display only one series of data. The area of the chart is the total percentage of the given data. Pie charts in Python are widely used in business presentations, reports, and dashboards due to their simplicity and effectiveness in displaying data d 8 min read Matplotlib.patches.Circle class in Python Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays and designed to work with the broader SciPy stack. matplotlib.patches.Circle The matplotlib.patches.Circle class is used to create a circul 3 min read Like