About 92,000 results
Open links in new tab
  1. python - plot a circle with Matplotlib.pyplot - Stack Overflow

    surprisingly I didn't find a straight-forward description on how to draw a circle with matplotlib.pyplot (please no pylab) taking as input center (x,y) and radius r. I tried some variants of this:

  2. How to draw a circle using turtle in python? - Stack Overflow

    Nov 2, 2020 · I wanted ask how can I draw a circle using turtle module in python just using turtle.forward and turtle.left? I use the code below: for i in range (30): turtle.forward (i) turtle.left (i)

  3. Drawing circles in Python - Stack Overflow

    Aug 18, 2020 · I propose a solution, that is very simple and gives you the right result. The main advantage is, that it can be easily modified, like making wiggly circles, points on the circles, …

  4. Simpler way to draw a circle with tkinter? - Stack Overflow

    Aug 9, 2021 · Below is a fully-functioning program (Python 2.7 and 3.x), of which the third paragraph is of interest. Add it to your code and you can treat tk.Canvas.create_circle(x, y, r, …

  5. python - How to make a rounded button tkinter? - Stack Overflow

    A very easy way to make a rounded button in tkinter is to use an image. First create an image of what you want you button to look like save it as a .png and remove the outside background so …

  6. How to do a scatter plot with empty circles in Python?

    Aug 1, 2018 · In Python, with Matplotlib, how can a scatter plot with empty circles be plotted? The goal is to draw empty circles around some of the colored disks already plotted by scatter(), so …

  7. How to draw a semicircle in Python turtle only - Stack Overflow

    Apr 3, 2015 · How to draw a semi circle (half circle) in python turtle only? I can only use Python turtle. I have try looking for resouces but no luck on finding ones that only use Python turtle.

  8. Python Turtle: Draw concentric circles using circle () method

    Jun 5, 2018 · I was showing a grandson patterns drawn with Python's Turtle module, and he asked to see concentric circles. I thought it would be faster to use the turtle's circle() to draw …

  9. python - How can I create a circular mask for a numpy array?

    Jul 2, 2017 · The other answers work, but they are slow, so I will propose an answer using skimage.draw.disk. Using this is faster and I find it simple to use. Simply specify the center of …

  10. How to write simple geometric shapes into numpy arrays

    Apr 5, 2012 · 38 I would like to generate a numpy array of 200x200 elements in size and put into it a circle centered into 100,100 coordinates, radius 80 and stroke width of 3 pixels. How to do …