1

プロット サイズを小さく (3,2) 変更したいのですが、テキスト (軸ラベル、凡例、軸タイトル) のサイズが変わらないという問題があります。これが私のコードです:

fig = plt.figure(figsize = (3,2), facecolor = 'w')
plt.axis([1985,2015,2,30])
plt.plot(new_time_list1,new_head_list1,linestyle='',marker='o',markerfacecolor='red',label="observed")
plt.plot(new_time_list2,new_head_list2,color='green',label=headers[i])
plt.ylabel('Water levels (mAHD)',fontsize = 2)
plt.xlabel('Time', fontsize = 2)
plt.legend(loc='upper left', fontsize=2)
plt.savefig(headers[i]+'.png', facecolor=fig.get_facecolor(),edgecolor = 'k')

とにかく、プロットサイズに対応してテキストサイズを自動的に変更する方法はありますか?

4

0 に答える 0