Re: TLegend not showing line style

From: James Jackson <james.jackson_at_cern.ch>
Date: Tue, 2 Dec 2008 21:35:08 +0000


Ah, apologies, I had a typo in my script. This does indeed work fine.

Regards,
James.

On 2 Dec 2008, at 21:32, Rene Brun wrote:

> I cannot reproduce this problem. Could you send the shortest
> possible RUNNING script reproducing the problem? and identify your
> version of ROOT?
>
> Rene
>
> James Jackson wrote:
>> 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:35:26 CET

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