I have a set of points:
a = ([126, 237, 116, 15, 136, 348, 227, 247, 106, 5, -96, 25, 146], [117, 127, 228, 107, 6, 137, 238, 16, 339, 218, 97, -4, -105])
And I make a scatter plot of them like so:
fig = plt.figure(figsize = (15,6))
ax = fig.add_subplot(111)
ax.scatter(a[0], a[1], color = 'red', s=binradius)
Which makes this plot:
--
I am overlaying this with a picture, in which there is a spherical blobl at each of the scatter points. I want to fit this blob, so I am defining a rectangular region around the scatter points for the fit to be performed.
I want to see this rectangle on the plot, to see visually whether they are large enough to enclose the blob, like so:
Can I do it with scatter
? Or is there any other way I can do it?