import matplotlib.pyplot as plt # We prepare the plot fig, ax = plt.subplots() ax.tick_params(axis='y', which='major', labelsize=10) ax.tick_params(axis='y', which='minor', labelsize=10)