ax1.grid(True, axis='both', color='yellow')
ax1.bar(x, y1, 1, alpha=0.9, edgecolor='black', facecolor='blue', zorder=1)
ax2.grid(False)
ax2.plot(x + 0.5, y2, color='red')
Matplotlib: grid lines above bars