采用:
import matplotlib.pyplot as pltplt.gcf().subplots_adjust(bottom=0.15)
编辑:
自从我给出答案以来,
matplotlib增加了
tight_layout()功能。所以我建议使用它:
plt.tight_layout()
应该为xlabel腾出空间。
欢迎分享,转载请注明来源:内存溢出
采用:
import matplotlib.pyplot as pltplt.gcf().subplots_adjust(bottom=0.15)
编辑:
自从我给出答案以来,
matplotlib增加了
tight_layout()功能。所以我建议使用它:
plt.tight_layout()
应该为xlabel腾出空间。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)