how to remove grid use plt.rcParams code example Example: matplotlib get rid of gridlines ax.grid(False)