2808 explained code solutions for 75 technologies


python-matplotlibHow to change font size of axes labels


import matplotlib.pyplot as plt

plt.plot([2,1,3])
plt.xlabel('woa X!', fontsize=20)
plt.show()ctrl + c
import matplotlib.pyplot as plt

loads Matplotlib module to use plotting capabilities

xlabel

add label to x-axis

woa X!

text to use as label

fontsize

set given label font size

.show()

render chart in a separate window