matplotlib图例标记仅一次

matplotlib图例标记仅一次,第1张

matplotlib图例标记仅一次

这应该工作:

legend(numpoints=1)

顺便说一句,如果您添加行

legend.numpoints     : 1      # the number of points in the legend line

到您的matplotlibrc文件中,那么这将是新的默认设置。

[另请参见散点图,具体取决于您的情节。]

API:链接到API文档



欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5431526.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-11
下一篇 2022-12-11

发表评论

登录后才能评论

评论列表(0条)

保存