I want to change the font of numbers (1,2,...) in mathplotlib, I used a custom font for changing of axis legend font by this way:
from matplotlib import font_