TLegend not showing line style

From: James Jackson <james.jackson_at_cern.ch>
Date: Tue, 2 Dec 2008 20:59:59 +0000


Hi,

I have a number of TF1 objects, defined like:

TF1 *f1 = new TF1("decayTheta1", decayLabTheta, thres1, 4000, 3); f1->SetLineStyle(1);

I am then adding them to a TLegend thus:

l->AddEntry(f1, "5 GeV", "l");

When I plot the TLegend, the LineStyle does not propagate to the Legend (all are displayed as solid lines). Is there any way to display these correctly? Root version is:

ROOT 5.20/00 (trunk_at_24524, Aug 13 2008, 13:17:00 on macosx64)

Regards,
James. Received on Tue Dec 02 2008 - 22:00:11 CET

This archive was generated by hypermail 2.2.0 : Tue Dec 02 2008 - 23:50:01 CET