答案 0 :(得分:3)
你可能会用几种不同的绘图包来实现这种类型的情节。要在matplotlib中获得类似的内容,请尝试按如下方式设置标记:
import numpy as np
import matplotlib.pyplot as plt
# random data to stand in
x1 = 0.8+0.1*np.random.rand(25)
x2 = 0.3+0.2*np.random.rand(25)
# customise the marker properties
plt.plot(x1, color='g', marker='s', mec='w', mfc='g', mew='3', ms=8)
plt.plot(x2, color='b', marker='s', mec='w', mfc='b', mew='3', ms=8)
plt.show()