I am trying to change the font family and style of x- and y-ticks of a plot. Here is what I do:
import matplotlib.pyplot as plt
from matplotlib import rc
font = {'family' : 'sans-serif',
'weight' : 'bold',
'size' : 10}
rc('font', **font)
rc('text', usetex=True)
data = range(100)
fig, ax = plt.subplots(1, 1)
ax.scatter(data, data)
plt.show()
The only parameter from 'font' that has an influence on ticks is 'size'. Why do 'weight' and 'family' not have an influence on the ticks?