首页 > 解决方案 > 删除 pyplot.hist() 中的背景绘图线

问题描述

如何删除此 matplotlib 直方图示例中的背景线?

链接到 matplotlib 教程

标签: pythonhistogram

解决方案


只需在示例代码中更改plt.grid(True)为?plt.grid(False)


推荐阅读