how to set the gridlines in a matplotib plot code example Example: grid off matplotlib plt.grid(b=None)