rootpy.plotting.Legend

class rootpy.plotting.Legend(entries, pad=None, leftmargin=0.5, topmargin=0.05, rightmargin=0.05, entryheight=0.06, entrysep=0.02, margin=0.3, textfont=None, textsize=None, header=None)[source]
AddEntry(thing, label=None, style=None)[source]

Add an entry to the legend.

If label is None, thing.GetTitle() will be used as the label.

If style is None, thing.legendstyle is used if present, otherwise P.