matplotlib set axis font size figure code example
Example: matplotlib change text size
import matplotlib.pyplot as plt
plt.rcParams.update({'font.size': 22})
import matplotlib.pyplot as plt
plt.rcParams.update({'font.size': 22})