Matplotlib 网格线我们可以使用pyplot 中的grid() 方法来设置图表中的网格线。 grid() 方法 ... plt.plot(x, y) ... plt.grid(axis='x') # 设置y 就在轴方向显示网格线
確定! 回上一頁