Two adjacent symbols in matplotlib legend

牧云@^-^@ 提交于 2019-12-05 21:18:14

I do not answer your main question, sorry. However, regarding your last point

how to make the legend symbols look the same (line thickness, size) as the scatter symbols

you can use the keyword markerscale of the legend command. So for equal size

    ax2.legend( ...<handles_and_labels>...  , markerscale=1)

or a change of legend.markerscale in the rcParams should do.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!