Grids not displayed while using matplotlib

The following code doesn’t display any grid for the vector unlike that showed in the deep learning course.

Please help!

I think this discrepancy in default behavior could be due to differences in versions of matplotlib (or even python2 vs python3 Jupyter notebook differences for matplotlib), though I did not check if that is the case.

One workaround would be to add the following before plt.quiver(...) to get a grid:

plt.rcParams['axes.axisbelow'] = True