How can I change the grey color in the background to white color?
JavaScript
x
2
1
mydata.plot()
2
Advertisement
Answer
JavaScript
1
12
12
1
import matplotlib.pyplot as plt
2
import numpy as np
3
x = np.arange(0, 10, .1)
4
y = np.sin(x)
5
plt.figure(facecolor='yellow')
6
plt.plot(x, y)
7
plt.xlabel("X")
8
ax = plt.axes()
9
ax.set_facecolor("violet")
10
plt.ylabel('sin(x)')
11
plt.show()
12
it make it yellow my freind