我画了一个带有标记的图,如下所示:
plt.scatter(xs1, ys1, s=12, linewidths=0, marker='o', label='hello')
plt.scatter(xs2, ys2, s=12, linewidths=0, marker='x', label='hello')
这会在图中产生正确的大小,但图例中的符号很难理解。如何增加图例中符号的大小?
最佳答案
我在 matplotlib.pyplot.legend 中找到了解决方案.图例采用属性“markerscale”。
plt.legend(loc='best',markerscale=2)
关于matplotlib - 增加 matplotlib 图例中符号的大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49800496/