Matplotlib Move X-Axis or Y-Axis Spines to the Center in Matplotlib Move Matplotlib x-axis and y-axis spines to the center of a chart.