How to get the background color and the grid line in my google colab Plots

I am not able to see the plots with the backgrounds colors and grid in the plots graph in my Google Colab. so can anyone help me out with it, i am getting this type of graph getting

but i want this type
want

See if this link helps.

Use ‘ggplot’ style when you import matplotlib as:
plt.style.use("ggplot")

1 Like

Thank You for the solution.