看看
plt.tight_layout()或
plt.subplots_adjust()或
fig.savefig(bbox_inches='tight')。
使用,
subplots_adjust您可以调整大多数参数,而
tight_layout()和
bbox_inches='tight'或多或少是半自动的。

看看
plt.tight_layout()或
plt.subplots_adjust()或
fig.savefig(bbox_inches='tight')。
使用,
subplots_adjust您可以调整大多数参数,而
tight_layout()和
bbox_inches='tight'或多或少是半自动的。