Hi,
Does anyone know how to change the width (shrink it) the part of the TLegend where the marker § or line (L) is displayed? I would like to show shorter lines and have less white space around my markers.
Thanks in advance,
Catherine
PS I’m using most recent version of root.
do something like:
// draw the legend
TLegend *legend=new TLegend(0.6,0.65,0.88,0.85);
legend->SetMargin(0.15); //default is 0.25
TLegendEntry *le1 = legend->AddEntry(histo,"Data","lp");
le1->SetLineWidth(1);
Rene
Sorry for hijacking this old post and response, but I think the suggested change is not working, since le1->SetLineWidth(1);
does actually not change the displayed line thickness in the legend, which still takes it’s value from histo
. Sure one can change the line thickness of histo
or use other workarounds like adding a copied histogram and changing the attributes of that, but I actually find it a bit sad, that this intuitive way of changing specific parameters in the TLegend is not supported. Based on this rational I am wondering if there is any reason not to take the settings of the TLegendEntry into account.