【发布时间】:2020-09-27 18:13:32
【问题描述】:
我的直方图如下:
我还有一些数据点,我想在直方图上绘制一些值。
例如:
a 点的 RMSE = 0.99
点 b 的 RMSE = 1.5
所以这两个点应该出现在直方图上,并且每个点都应该有不同的颜色。
编辑:
这是我绘制直方图的代码:
bins = [0.6, 0.8, 1, 1.2, 1.4, 1.6, 1.8, 2, 2.2, 2.4]
plt.hist(rms, bins=bins, rwidth= 1.2)
plt.xlabel('RMSE')
plt.ylabel('count')
plt.show()
如何向它添加存储在某个变量中的新数据点。
【问题讨论】:
标签: python python-3.x matplotlib histogram seaborn