2808 explained code solutions for 75 technologies

python-matplotlibHow to change tick sizes

In order to change axis labels frequency, we can use nbins option of locator_params to set the amount of ticks we want:

import matplotlib.pyplot as plt

plt.tick_params(axis='both', length=15)
plt.show()ctrl + c
import matplotlib.pyplot as plt

loads Matplotlib module to use plotting capabilities


plot specified data


set axis tick labels params


we want to update configuration for all axes (use x or y to update certain axis)


set length of the ticks


length of our ticks would be 15 points


render chart in a separate window