【python】matplotlibで図の余白を調整する - 静かなる名辞

matplotlibで図を描画するとき、余白に納得がいかないことがある。 調整方法を自分用にメモ。 余白の大きさを変える plt.subplots_adjust()を使うと余白を調整できる。 ドキュメントによると、デフォルト値は以下の通り。 left = 0.125 # the left side of the subplots of the figure right = 0.9 # the right side of th…