如何删除关闭阶梯直方图路径的底线?import numpy as npimport matplotlib.pyplot as pltmu, sigma = 100, 15x = mu + sigma * np.random.randn(10000)fig = plt.figure()ax = fig.add_subplot(111)n, bins, patches = ax.hist(x, 50, normed=1, histtype='step')plt.ylim(-.005, plt.ylim()[1])plt.show()
添加回答
举报
0/150
提交
取消