matplotlib numbers in legend
问题 I have a couple of lines and I want to show a legend. The problem is, I can't use different styles ( -- , : , -. ) because there are too few of them, and I can't use markers ( + , * , etc.) because I need them to show some points on the lines. So the best idea I've come up with is to use numbers. But I can't figure how I can create legends with numbers. I can even draw numbers near lines myself (to place them in the best position), but how can I then draw a legend with the numbers? I.e.