matplotlib如何调整画出来的图形最左边和最右边和两侧坐标轴的距离
代码如下import pandas as pd
import matplotlib.pyplot as plt
df=pd.DataFrame({'WEEK':['W2101','W2102','W2103','W2104'],'COUNT':})
fig, ax = plt.subplots()
plt.bar(df.WEEK,df.COUNT,width=0.5)
plt.show()
plt.close('all')
想调整如图片所示两边的距离,如何调整,多谢了
页:
[1]