2808 explained code solutions for 75 technologies


python-matplotlibHow to change grid color


import matplotlib.pyplot as plt
plt.plot([1,2,10,6,15,3,4,2,5,1,7,3,4])
plt.grid(color='green')
plt.show()ctrl + c
import matplotlib.pyplot as plt

loads Matplotlib module to use plotting capabilities

.plot(

plot specified data

.grid(

add and configure grid

color

set color to use for grid lines

.show()

render chart in a separate window