how to remove grid lines in matplotlib code example Example: matplotlib get rid of gridlines ax.grid(False)