http://matplotlib.sourceforge.net/api/pyplot_api.html?highlight=legend#matplotlib.pyplot.legend
numpoints=1 is what you want.
For font size and etc, check the similar question posted a few days ago.
http://www.nabble.com/formatting-help-with-legend-for-stacked-bar-graph-with-many-categories-td24
hi all,
i am plotting two distinct lines, one of the format '-o' the other of the
format '-s' -- i.e. one line with circular markers the other with a square
marker. when i add a legend to the figure, it gives a legend that looks like
this:
o---o label of circular marker line
s---s label of squa