0
A
回答
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()
+0
这似乎是一个很好的“黑客”,但正如http://stackoverflow.com/中指出的那样问题/ 14498702 /,如果多行重叠,或者标记彼此靠近,这种方法效果不佳。链接上还有另一个黑客解决方案 - 但是真的没有简单的方法来实现这个工作吗? – Daniel
相关问题
- 1. python matplotlib pcolor空白空间
- 2. 白色空间
- 3. matplotlib中的反色标记
- 4. BxSlider白色空间
- 5. 顶部和底部的白色空间Python matplotlib图
- 6. 颜色编码matplotlib标记
- 7. 白色空间:正常白色空间内:nowrap
- 8. Firefox的白色空间
- 9. CSS的白色空间:NOWRAP
- 10. 白色空间:预包装导致额外空间
- 11. PHP开始标记和命名空间之间的空白
- 12. 删除HTML中标记之间的空白空间
- 13. 很多锚点标记之间的空白空间
- 14. 删除ToolStripControlHost周围的空白空间
- 15. 的Python Matplotlib - fill_between在顶部除去线之间的白色空间y轴
- 16. Matplotlib“灰色”颜色表不跨越全黑到白范围
- 17. textarea充满白色空间
- 18. 尾随白色空间
- 19. Skrollr增加白色空间
- 20. 剥离白色空间后:
- 21. 白色矩形空间
- 22. 白色空间在C#.NET
- 23. 读可选白色空间(
- 24. 白色空间属性
- 25. Python语法白色空间
- 26. XCData和白色空间
- 27. 搜索和白色空间
- 28. 删除白色空间
- 29. Bootstrap Gallery白色空间
- 30. tomcat修剪白色空间
请参阅:http://stackoverflow.com/questions/14498702/custom-plot-linestyle-in-matplotlib –