9951 explained code solutions for 126 technologies


python-matplotlibHow to change tick color


import matplotlib as mpl
import matplotlib.pyplot as plt

mpl.rc('xtick', color='blue')
mpl.rc('ytick', color='green')

plt.plot([2,1,3])

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

loads Matplotlib module to use plotting capabilities

mpl.rc

manage configuration

'xtick', color

x value labels color

'ytick', color

y value labels color

.show()

render chart in a separate window