Changed plt.grid() to ax1.grid() so grid is displayed for both axis but only from the primary axis not secondary.