r_bt.longueur_groupby_section.plot(kind='barh',ylabel='Nombre de clients',xlabel='type de cable',title='longueur de conducteur en fonction de la section')
plt.legend()
plt.show()
但是电话被切断了..
有人有主意吗?
推荐答案
可以使用subplot_adjust()函数调整matplotlib图形周围的间距:
import matplotlib.pyplot as plt
plt.plot(whatever)
plt.subplots_adjust(left=0.1, right=0.9, top=0.9, bottom=0.1)