matplotlib の y 軸の上の sci 表記のサイズを変更する方法は?
以下は、4 つのサブプロットの基本的なコードとイメージです。y 軸の上の sci パワー表記のサイズを縮小する方法がわかりません。
どんな提案でも大歓迎です
import matplotlib.pyplot as plt
import numpy as np
def plot():
#plot data
ax.plot(np.arange(0,10000,100),np.arange(0,10000,100))
#set label style
ax.ticklabel_format(style='sci',axis='y')
ax.yaxis.major.formatter.set_powerlimits((0,0))
#format labels/ticks
ax.tick_params(axis='x',tick1On=True, tick2On=False, label1On=True,
label2On=False, labelsize=7,color='black')
ax.tick_params(axis='y', tick1On=True,tick2On=False, label1On=True,
label2On=False, labelsize=7,color='black')
fig = plt.figure()
ax = fig.add_subplot(2,2,1)
plot()
ax = fig.add_subplot(2,2,2)
plot()
ax = fig.add_subplot(2,2,3)
plot()
ax = fig.add_subplot(2,2,4)
plot()
plt.tight_layout()
fig.subplots_adjust(left=None, bottom=None, right=None, wspace=0.15, hspace=0.22)
plt.show()