The matplotlib api is `ax.grid`, which allows for controlling each axes independently or together.