Draw X Axis in the middle of plot (instead of bottom)

How can I change the position of the X axis, for example:

Something similar to matplotlib spines?