Ejemplo n.º 1
0
pyplot.ylabel('Y Space')

#Give the plot a title
pyplot.title('Radius Search Plot Using Shapely')

# Draw the collision circle/boundary
cir = Circle((circleX, circleY), radius=circleRadius, fc='b', zorder=2)
cir.set_alpha(0.1)

x = []
y = []
col = []

clist = ['c', 'm', 'y', 'k', 'b', 'g', 'r']

b = RtreeIndex.leaves()
for i in b:
    pyplot.gca().add_patch(
        Rectangle((i[2][0], i[2][1]),
                  i[2][2] - i[2][0],
                  i[2][3] - i[2][1],
                  fill=False))

for idx, point in enumerate(pointList):
    style = 'g'
    #iAlpha = 0.4
    if (idx in matchingPoints):
        style = 'r'
    #	iAlpha = 1
    x += [point[0]]
    y += [point[1]]