假设我们想调整一些轴标签,且 ax 变量中有多个轴,可以进行一些操作:
fig, ax = plt.subplots()
top_10.plot(kind='barh', y="Sales", x="Name...fig, ax = plt.subplots(figsize=(5, 6))
top_10.plot(kind='barh', y="Sales", x="Name", ax=ax)
ax.set_xlim...完整代码如下:
fig, ax = plt.subplots()
top_10.plot(kind='barh', y="Sales", x="Name", ax=ax)
ax.set_xlim([-10000...就以上示例,我们可以画一条表示平均值的线,包括代表 3 个新客户的标签。...axes
fig, (ax0, ax1) = plt.subplots(nrows=1,ncols=2, sharey=True, figsize=(7, 4))
top_10.plot(kind='barh