我以这种方式绘制了一些数据:
plt.plot(x, data['Coherence'], color='b', marker='.', linestyle='solid', mfc='none', mec='b')
plt.xlabel("Number of Topics")
plt.ylabel("Coherence score")
plt.legend("coherence_values", loc='best')
plt.show()
输出(正确)为:
这几乎是我想要的,但在标记后面,我仍然可以看到部分线条。 有办法得到这样的结果吗
谢谢大家!
您可以将
markerfacecolor
参数设置为“白色”以获得所需的结果例如:
得出以下数字:
相关问题 更多 >
编程相关推荐