Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我找不到对 x 中的虚线的解释(或覆盖的方式):
DataFrame([1]).plot(kind='bar')
这只是一个基线指示y==0,您可以通过以下方式将其关闭ax.lines[0].set_visible(False):
y==0
ax.lines[0].set_visible(False)
ax = DataFrame([1]).plot(kind='bar') ax.lines[0].set_visible(False) ax.set_ylim(-0.2, 1.2)