major and minor gridlines subplot matplotlib code example Example: grid off matplotlib plt.grid(b=None)