someX, someY = 0.5, 0.5
plt.figure()
currentAxis = plt.gca()
currentAxis.add_patch(Rectangle((someX - 0.1, someY - 0.1), 0.2, 0.2, fill=
    None, alpha=1))
plt.show()
Drawing rectangle with border only in matplotlib