{"id":7796,"date":"2021-01-18T17:58:49","date_gmt":"2021-01-18T12:28:49","guid":{"rendered":"http:\/\/www.pythonpool.com\/?p=7796"},"modified":"2021-06-15T07:35:56","modified_gmt":"2021-06-15T02:05:56","slug":"matplotlib-circle","status":"publish","type":"post","link":"https:\/\/www.pythonpool.com\/matplotlib-circle\/","title":{"rendered":"6 Ways to Plot a Circle in Matplotlib"},"content":{"rendered":"\n<p>Hello coders!! In this article, we will learn how to make a circle using matplotlib in Python. A circle is a figure of round shape with no corners.&nbsp;There are various ways in which one can plot a circle in matplotlib. Let us discuss them in detail.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_74 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #990303;color:#990303\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #990303;color:#990303\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.pythonpool.com\/matplotlib-circle\/#Method_1_matplotlibpatchesCircle\" >Method 1: matplotlib.patches.Circle():<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.pythonpool.com\/matplotlib-circle\/#Method_2_Using_the_equation_of_circle\" >Method 2: Using the equation of circle:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.pythonpool.com\/matplotlib-circle\/#Method_3_Scatter_Plot_to_plot_a_circle\" >Method 3: Scatter Plot to plot a circle:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.pythonpool.com\/matplotlib-circle\/#Method_4_Matplotlib_hollow_circle\" >Method 4: Matplotlib hollow circle:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.pythonpool.com\/matplotlib-circle\/#Method_5_Matplotlib_draw_circle_on_image\" >Method 5: Matplotlib draw circle on image:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.pythonpool.com\/matplotlib-circle\/#Method_6_Matplotlib_transparent_circle\" >Method 6: Matplotlib transparent circle:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.pythonpool.com\/matplotlib-circle\/#Conclusion\" >Conclusion:<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-method-1-matplotlib-patches-circle\"><span class=\"ez-toc-section\" id=\"Method_1_matplotlibpatchesCircle\"><\/span><strong>Method 1: matplotlib.patches.Circle():<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>SYNTAX: <\/strong><ul><li><em>class&nbsp;<\/em><code>matplotlib.patches.Circle<\/code>(<em>xy<\/em>,&nbsp;<em>radius=<\/em>r,&nbsp;<em>**kwargs<\/em>)<\/li><\/ul><\/li><li><strong>PARAMETERS: <\/strong><ul><li><strong>xy: <\/strong>(x,y) center of the circle<\/li><li>r: radius of the circle<\/li><\/ul><\/li><li><strong>RESULT:<\/strong> a circle of radius r with center at (x,y)<\/li><\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nimport matplotlib.pyplot as plt \n\nfigure, axes = plt.subplots() \ncc = plt.Circle(( 0.5 , 0.5 ), 0.4 ) \n\naxes.set_aspect( 1 ) \naxes.add_artist( cc ) \nplt.title( 'Colored Circle' ) \nplt.show()\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-output-explanation\">Output &amp; Explanation:<\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"262\" height=\"264\" src=\"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/image-59.png\" alt=\"matplotlib.patches.Circle\" class=\"wp-image-7812\" srcset=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/image-59.png 262w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/image-59-150x150.png 150w\" sizes=\"(max-width: 262px) 100vw, 262px\" \/><figcaption><strong><em>Output<\/em><\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<p>Here, we have used the circle() method of the matplotlib module to draw the circle. We<strong> adjusted the ratio of y unit to x unit using the <a href=\"https:\/\/matplotlib.org\/3.1.1\/api\/_as_gen\/matplotlib.axes.Axes.set_aspect.html\" target=\"_blank\" rel=\"noreferrer noopener\">set_aspect() <\/a>method. <\/strong>We set the radius of the circle as 0.4 and made the coordinate (0.5,0.5) as the center of the circle.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-method-2-using-the-equation-of-circle\"><span class=\"ez-toc-section\" id=\"Method_2_Using_the_equation_of_circle\"><\/span>Method 2: Using the equation of circle:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The equation of circle is:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>x = r cos \u03b8<\/strong><\/li><li><strong>y = r sin \u03b8<\/strong><\/li><\/ul>\n\n\n\n<p>r: radius of the circle<\/p>\n\n\n\n<p>This equation can be used to draw the circle using matplotlib.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nimport numpy as np \nimport matplotlib.pyplot as plt \n\nangle = np.linspace( 0 , 2 * np.pi , 150 ) \n\nradius = 0.4\n\nx = radius * np.cos( angle ) \ny = radius * np.sin( angle ) \n\nfigure, axes = plt.subplots( 1 ) \n\naxes.plot( x, y ) \naxes.set_aspect( 1 ) \n\nplt.title( 'Parametric Equation Circle' ) \nplt.show() \n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-output-explanation-1\">Output &amp; Explanation:<\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"263\" height=\"264\" src=\"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/image-60.png\" alt=\"equation of circle\" class=\"wp-image-7827\" srcset=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/image-60.png 263w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/image-60-150x150.png 150w\" sizes=\"(max-width: 263px) 100vw, 263px\" \/><figcaption><strong><em>Output<\/em><\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<p>In this example, we used the parametric equation of the circle to plot the figure using matplotlib. For this example, we took the radius of the circle as 0.4 and set the <a href=\"http:\/\/www.pythonpool.com\/matplotlib-aspect-ratio\/\" target=\"_blank\" rel=\"noreferrer noopener\">aspect ratio<\/a> as 1.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-method-3-scatter-plot-to-plot-a-circle\"><span class=\"ez-toc-section\" id=\"Method_3_Scatter_Plot_to_plot_a_circle\"><\/span>Method 3: Scatter Plot to plot a circle:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><strong>A scatter plot is a graphical representation that makes use of dots to represent values of the two numeric values. &nbsp;Each dot on the xy axis indicates value for an individual data point.<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>SYNTAX: <\/strong><ul><li><em><code>matplotlib.pyplot.scatter(x_axis_data, y_axis_data, s=None, c=None, marker=None, cmap=None, vmin=None, vmax=None, alpha=None, linewidths=None, edgecolors=None)<\/code><\/em><\/li><\/ul><\/li><li><strong>PARAMETERS:<\/strong><ul><li><strong>x_axis_data-<\/strong>&nbsp; x-axis data<\/li><li><strong>y_axis_data-<\/strong>&nbsp;y-axis data<\/li><li><strong>s-<\/strong>&nbsp;marker size<\/li><li><strong>c-<\/strong>&nbsp;color of sequence of colors for markers<\/li><li><strong>marker-<\/strong> marker style<\/li><li><strong>cmap-<\/strong>&nbsp;cmap name<\/li><li><strong>linewidths-<\/strong>&nbsp;width of marker border<\/li><li><strong>edgecolor-<\/strong>&nbsp;marker border-color<\/li><li><strong>alpha-<\/strong>&nbsp;blending value<\/li><\/ul><\/li><\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nimport matplotlib.pyplot as plt \n\nplt.scatter( 0 , 0 , s = 7000 ) \n\nplt.xlim( -0.85 , 0.85 ) \nplt.ylim( -0.95 , 0.95 ) \n\nplt.title( &quot;Scatter plot of points Circle&quot; ) \nplt.show()\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-output-explanation-2\">Output &amp; Explanation:<\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"386\" height=\"264\" src=\"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/image-61.png\" alt=\"Scatter Plot\" class=\"wp-image-7831\" srcset=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/image-61.png 386w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/image-61-300x205.png 300w\" sizes=\"(max-width: 386px) 100vw, 386px\" \/><figcaption><strong><em>Output<\/em><\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<p>Here, we have used the scatter plot to draw the circle. The <strong>xlim() and the <a href=\"http:\/\/www.pythonpool.com\/matplotlib-ylim\/\" target=\"_blank\" rel=\"noopener\">ylim()<\/a> methods are used to set the x limits and the y limits of the axes respectively<\/strong>.<\/strong> We&#8217;ve set the<a href=\"http:\/\/www.pythonpool.com\/matplotlib-marker\/\" target=\"_blank\" rel=\"noreferrer noopener\"> marker <\/a>size as 7000 and got the circle as the output.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-method-4-matplotlib-hollow-circle\"><span class=\"ez-toc-section\" id=\"Method_4_Matplotlib_hollow_circle\"><\/span>Method 4: Matplotlib hollow circle:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nimport matplotlib.pyplot as plt \n\nplt.scatter( 0 , 0 , s=10000 ,  facecolors='none', edgecolors='blue' ) \n\nplt.xlim( -0.5 , 0.5 ) \nplt.ylim( -0.5 , 0.5 ) \n\nplt.show()\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-output-explanation-3\">Output &amp; Explanation:<\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"380\" height=\"248\" src=\"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/image-69.png\" alt=\"Matplotlib hollow circle\" class=\"wp-image-7891\" srcset=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/image-69.png 380w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/image-69-300x196.png 300w\" sizes=\"(max-width: 380px) 100vw, 380px\" \/><figcaption><strong><em>Output<\/em><\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<p>To make the circle hollow, we have set the <strong>facecolor parameter as none<\/strong>, so that the circle is hollow. To differentiate the circle from the plane we have set the <strong>edgecolor as blue<\/strong> for better visualization.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-method-5-matplotlib-draw-circle-on-image\"><span class=\"ez-toc-section\" id=\"Method_5_Matplotlib_draw_circle_on_image\"><\/span>Method 5: Matplotlib draw circle on image:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nimport matplotlib.pyplot as plt\nimport matplotlib.patches as patches\nimport matplotlib.cbook as cb\n\n\nwith cb.get_sample_data('C:\\\\Users\\\\Prachee\\\\Desktop\\\\cds\\\\img1.jpg') as image_file:\n    image = plt.imread(image_file)\n\nfig, ax = plt.subplots()\nim = ax.imshow(image)\npatch = patches.Circle((100, 100), radius=80, transform=ax.transData)\nim.set_clip_path(patch)\n\nax.axis('off')\nplt.show()\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-output-explanation-4\">Output &amp; Explanation:<\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"341\" height=\"231\" src=\"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/image-67.png\" alt=\"draw circle on image\" class=\"wp-image-7886\" srcset=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/image-67.png 341w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/image-67-300x203.png 300w\" sizes=\"(max-width: 341px) 100vw, 341px\" \/><figcaption><strong><em>Output<\/em><\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<p>In this example, we first loaded our data and then used the axes.imshow() method. This method is used to <strong>display data as an image<\/strong>. We then set the radius and the center of the circle.  Then using the <strong>set_clip_path() method we set the artist&#8217;s clip-path<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-method-6-matplotlib-transparent-circle\"><span class=\"ez-toc-section\" id=\"Method_6_Matplotlib_transparent_circle\"><\/span>Method 6: Matplotlib transparent circle:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nimport matplotlib.pyplot as plt \n\nfigure, axes = plt.subplots() \ncc = plt.Circle(( 0.5 , 0.5 ), 0.4 , alpha=0.1) \n\naxes.set_aspect( 1 ) \naxes.add_artist( cc ) \nplt.title( 'Colored Circle' ) \nplt.show()\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-output-explanation-5\">Output &amp; Explanation:<\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"262\" height=\"264\" src=\"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/image-68.png\" alt=\"Matplotlib transparent circle\" class=\"wp-image-7887\" srcset=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/image-68.png 262w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/image-68-150x150.png 150w\" sizes=\"(max-width: 262px) 100vw, 262px\" \/><figcaption><strong><em>Output<\/em><\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<p>To make the circle transparent we changed the value of the <strong>alpha parameter which is used to control the transparency of our figure.<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>With this, we come to an end with this article. These are the various ways in which one can plot a circle using matplotlib in Python.<\/p>\n\n\n\n<p>However, if you have any doubts or questions, do let me know in the comment section below. I will try to help you as soon as possible.<\/p>\n\n\n\n<p><strong><em>Happy Pythoning!<\/em><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello coders!! In this article, we will learn how to make a circle using matplotlib in Python. A circle is a figure of round shape &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"6 Ways to Plot a Circle in Matplotlib\" class=\"read-more button\" href=\"https:\/\/www.pythonpool.com\/matplotlib-circle\/#more-7796\" aria-label=\"More on 6 Ways to Plot a Circle in Matplotlib\">Read more<\/a><\/p>\n","protected":false},"author":12,"featured_media":7953,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2071],"tags":[3329,3326,3328,3327,3323,3330,3325,3324],"class_list":["post-7796","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-matplotlib","tag-draw-circle-matplotlib","tag-matplotlib-draw-circle","tag-matplotlib-draw-circle-on-image","tag-matplotlib-empty-circle","tag-matplotlib-hollow-circle","tag-matplotlib-open-circle","tag-matplotlib-plot-circle","tag-plot-circle-matplotlib","infinite-scroll-item"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.1 (Yoast SEO v25.0) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>6 Ways to Plot a Circle in Matplotlib - Python Pool<\/title>\n<meta name=\"description\" content=\"we will learn how to make a circle using matplotlib in Python. A circle is a figure of round shape with no corners. There are various ways to\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.pythonpool.com\/matplotlib-circle\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"6 Ways to Plot a Circle in Matplotlib\" \/>\n<meta property=\"og:description\" content=\"Hello coders!! In this article, we will learn how to make a circle using matplotlib in Python. A circle is a figure of round shape with no\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pythonpool.com\/matplotlib-circle\/\" \/>\n<meta property=\"og:site_name\" content=\"Python Pool\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-18T12:28:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-15T02:05:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/Theatre-Actor-Portfolio-Website-27.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1350\" \/>\n\t<meta property=\"og:image:height\" content=\"650\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Prachee Sao\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pythonpool\" \/>\n<meta name=\"twitter:site\" content=\"@pythonpool\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prachee Sao\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.pythonpool.com\/matplotlib-circle\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/matplotlib-circle\/\"},\"author\":{\"name\":\"Prachee Sao\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/b91d749826b21e606d55cda77d51ef47\"},\"headline\":\"6 Ways to Plot a Circle in Matplotlib\",\"datePublished\":\"2021-01-18T12:28:49+00:00\",\"dateModified\":\"2021-06-15T02:05:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/matplotlib-circle\/\"},\"wordCount\":542,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/www.pythonpool.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/matplotlib-circle\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/Theatre-Actor-Portfolio-Website-27.png\",\"keywords\":[\"draw circle matplotlib\",\"matplotlib draw circle\",\"matplotlib draw circle on image\",\"matplotlib empty circle\",\"matplotlib hollow circle\",\"matplotlib open circle\",\"matplotlib plot circle\",\"plot circle matplotlib\"],\"articleSection\":[\"Matplotlib\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.pythonpool.com\/matplotlib-circle\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.pythonpool.com\/matplotlib-circle\/\",\"url\":\"https:\/\/www.pythonpool.com\/matplotlib-circle\/\",\"name\":\"6 Ways to Plot a Circle in Matplotlib - Python Pool\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/matplotlib-circle\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/matplotlib-circle\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/Theatre-Actor-Portfolio-Website-27.png\",\"datePublished\":\"2021-01-18T12:28:49+00:00\",\"dateModified\":\"2021-06-15T02:05:56+00:00\",\"description\":\"we will learn how to make a circle using matplotlib in Python. A circle is a figure of round shape with no corners. There are various ways to\",\"breadcrumb\":{\"@id\":\"https:\/\/www.pythonpool.com\/matplotlib-circle\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.pythonpool.com\/matplotlib-circle\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/matplotlib-circle\/#primaryimage\",\"url\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/Theatre-Actor-Portfolio-Website-27.png\",\"contentUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/Theatre-Actor-Portfolio-Website-27.png\",\"width\":1350,\"height\":650,\"caption\":\"matplotlib circle\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.pythonpool.com\/matplotlib-circle\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.pythonpool.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"6 Ways to Plot a Circle in Matplotlib\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.pythonpool.com\/#website\",\"url\":\"https:\/\/www.pythonpool.com\/\",\"name\":\"Python Pool\",\"description\":\"Your One-Stop Python Learning Destination\",\"publisher\":{\"@id\":\"https:\/\/www.pythonpool.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.pythonpool.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.pythonpool.com\/#organization\",\"name\":\"Python Pool\",\"url\":\"https:\/\/www.pythonpool.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png\",\"contentUrl\":\"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png\",\"width\":452,\"height\":185,\"caption\":\"Python Pool\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/pythonpool\",\"https:\/\/www.youtube.com\/c\/pythonpool\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/b91d749826b21e606d55cda77d51ef47\",\"name\":\"Prachee Sao\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d018c3758049ab2511d0772ac1f73c338aaa8c921577f39e0f1e5716fc7efcb4?s=96&d=wavatar&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d018c3758049ab2511d0772ac1f73c338aaa8c921577f39e0f1e5716fc7efcb4?s=96&d=wavatar&r=g\",\"caption\":\"Prachee Sao\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"6 Ways to Plot a Circle in Matplotlib - Python Pool","description":"we will learn how to make a circle using matplotlib in Python. A circle is a figure of round shape with no corners. There are various ways to","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.pythonpool.com\/matplotlib-circle\/","og_locale":"en_US","og_type":"article","og_title":"6 Ways to Plot a Circle in Matplotlib","og_description":"Hello coders!! In this article, we will learn how to make a circle using matplotlib in Python. A circle is a figure of round shape with no","og_url":"https:\/\/www.pythonpool.com\/matplotlib-circle\/","og_site_name":"Python Pool","article_published_time":"2021-01-18T12:28:49+00:00","article_modified_time":"2021-06-15T02:05:56+00:00","og_image":[{"width":1350,"height":650,"url":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/Theatre-Actor-Portfolio-Website-27.png","type":"image\/png"}],"author":"Prachee Sao","twitter_card":"summary_large_image","twitter_creator":"@pythonpool","twitter_site":"@pythonpool","twitter_misc":{"Written by":"Prachee Sao","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pythonpool.com\/matplotlib-circle\/#article","isPartOf":{"@id":"https:\/\/www.pythonpool.com\/matplotlib-circle\/"},"author":{"name":"Prachee Sao","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/b91d749826b21e606d55cda77d51ef47"},"headline":"6 Ways to Plot a Circle in Matplotlib","datePublished":"2021-01-18T12:28:49+00:00","dateModified":"2021-06-15T02:05:56+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pythonpool.com\/matplotlib-circle\/"},"wordCount":542,"commentCount":2,"publisher":{"@id":"https:\/\/www.pythonpool.com\/#organization"},"image":{"@id":"https:\/\/www.pythonpool.com\/matplotlib-circle\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/Theatre-Actor-Portfolio-Website-27.png","keywords":["draw circle matplotlib","matplotlib draw circle","matplotlib draw circle on image","matplotlib empty circle","matplotlib hollow circle","matplotlib open circle","matplotlib plot circle","plot circle matplotlib"],"articleSection":["Matplotlib"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pythonpool.com\/matplotlib-circle\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.pythonpool.com\/matplotlib-circle\/","url":"https:\/\/www.pythonpool.com\/matplotlib-circle\/","name":"6 Ways to Plot a Circle in Matplotlib - Python Pool","isPartOf":{"@id":"https:\/\/www.pythonpool.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.pythonpool.com\/matplotlib-circle\/#primaryimage"},"image":{"@id":"https:\/\/www.pythonpool.com\/matplotlib-circle\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/Theatre-Actor-Portfolio-Website-27.png","datePublished":"2021-01-18T12:28:49+00:00","dateModified":"2021-06-15T02:05:56+00:00","description":"we will learn how to make a circle using matplotlib in Python. A circle is a figure of round shape with no corners. There are various ways to","breadcrumb":{"@id":"https:\/\/www.pythonpool.com\/matplotlib-circle\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pythonpool.com\/matplotlib-circle\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/matplotlib-circle\/#primaryimage","url":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/Theatre-Actor-Portfolio-Website-27.png","contentUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/Theatre-Actor-Portfolio-Website-27.png","width":1350,"height":650,"caption":"matplotlib circle"},{"@type":"BreadcrumbList","@id":"https:\/\/www.pythonpool.com\/matplotlib-circle\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pythonpool.com\/"},{"@type":"ListItem","position":2,"name":"6 Ways to Plot a Circle in Matplotlib"}]},{"@type":"WebSite","@id":"https:\/\/www.pythonpool.com\/#website","url":"https:\/\/www.pythonpool.com\/","name":"Python Pool","description":"Your One-Stop Python Learning Destination","publisher":{"@id":"https:\/\/www.pythonpool.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pythonpool.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.pythonpool.com\/#organization","name":"Python Pool","url":"https:\/\/www.pythonpool.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/","url":"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png","contentUrl":"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png","width":452,"height":185,"caption":"Python Pool"},"image":{"@id":"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/pythonpool","https:\/\/www.youtube.com\/c\/pythonpool"]},{"@type":"Person","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/b91d749826b21e606d55cda77d51ef47","name":"Prachee Sao","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d018c3758049ab2511d0772ac1f73c338aaa8c921577f39e0f1e5716fc7efcb4?s=96&d=wavatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d018c3758049ab2511d0772ac1f73c338aaa8c921577f39e0f1e5716fc7efcb4?s=96&d=wavatar&r=g","caption":"Prachee Sao"}}]}},"_links":{"self":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/7796","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/comments?post=7796"}],"version-history":[{"count":16,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/7796\/revisions"}],"predecessor-version":[{"id":13661,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/7796\/revisions\/13661"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media\/7953"}],"wp:attachment":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media?parent=7796"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/categories?post=7796"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/tags?post=7796"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}