I am plotting a bar graph from a Pandas DataFrame in Jupyter Notebook and for some reason I am unable to change the grey background of the plot to white.
df = pd.DataFrame({
'Name': ['John', 'Sammy', 'Joe'],
'Age': [45, 38, 90],
'Height(in cm)': [150, 180, 160]
})
# plotting graph
df.plot(x="Name", y=["Age", "Height(in cm)"], kind="bar")
The code above plots the following:

I've tried plt.figure(facecolor='white') and plt.rcParams["axes.facecolor"] = "white", neither of which changed the background of the plot.
I have also tried adding
ax = plt.axes()
ax.set_facecolor("white")
before plt.show() but no success.