2808 explained code solutions for 75 technologies


python-matplotlibHow to change axis label color


import matplotlib as mpl
import matplotlib.pyplot as plt

mpl.rc('axes', labelcolor='red')

plt.plot([2,1,3])
plt.xlabel("X")
plt.ylabel("Y")

plt.show()ctrl + c
import matplotlib.pyplot as plt

loads Matplotlib module to use plotting capabilities

mpl.rc

manage configuration

'axes', labelcolor

axes labels color

.show()

render chart in a separate window