其中: fig,ax = plt.subplots() 等价于 fig=plt.figure() ax=fig.add_subplot(111) PS: 横着画用.bar( ),竖着画用.barh( )