Create second axis in matplotlib Fig, ax = plt.subplots(1,1) ax.plot(x,y1) ax2 = ax.twinx() ax2.plot(x,y2)