grid() (Matplotlib)

ax.grid() draws reference grid lines across a plot at the tick positions, making it easier to read values off the chart. You can toggle it on or off and…