0
I need to create a graph where, given the coordinates of the points, an x-ray circle is created around these points. Simulating the area of action.
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 me the following image:
But I can’t get all the dots to have their circles around them.
How can I do that?
Thanks for the help and explanation.
– Danilo
@You’re welcome. We’re here to help.
– Isac