I would like to shorten the length of the line used to show the colour of a displayed object (e.g. a TH1D) inside a TLegend. I found TLegendEntry, which has a method .SetMarkerSize(), but this seems to only apply to the point markers of e.g. functions. How can I have shorter, more compact lines inside the legend?
Any help is appreciated. Thanks in advance!
TH1F *h1 = new TH1F("h1","h1",100,-10,10);
TLegend *leg = new TLegend(0.1,0.5,0.3,0.7);
I believe Olivier left out the part that actually answers your question
leg->SetMargin(0.2); // or some other value)
does what you want.