I want to change the fontsize of the exponent as marked on the picture I cannot use the matplotlib.rc(
If the exponent is an offset
computed by matplotlib
you can do the following to change the font size of the exponent to 30
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(1,1.0001,100)
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot(x)
t = ax.yaxis.get_offset_text()
t.set_size(30)
plt.show()