type:
gca().y_location="origin"
if you have negative y values you can also add
gca().x_location="origin"