I need to create a graph where, given the coordinates of the points, a circle of x-ray is created around these points. Simulating the area of operation.
I have the following script:
================================
import matplotlib.pyplot as plt
x = [10, 15, 24, 34]
y = [10, 42, 27, 14]
x0 = 10
y0 = 10
r0 = 2
plt.plot(x, y, '.')
circle = plt.Circle((x0, y0), r0, color='r', fill=False)
plt.gca().add_artist(circle)
plt.axis([0, 50, 0, 50])
plt.show()
================================
That generates the following image:
But I can not make all the points have their circles around.
How can I do this?