I have a set of points which I am plotting like this:
import matplotlib.pyplot as plt`
x = [1,2,3,4,5,6]
y = [1,4,9,16,25,36]
plt.scatter(x, y)
plt.show()
This gives output like this
What I want is to drop perpendiculars from the points to the axes, like in the figure below:
How can this be achieved?


