Hey Luc,
Thanks for your suggestion, although I still have to try it later.
Anyway, I made a simple work-around by giving a name to my previously
nameless TProfile,
Char_t *prName = "prof1"; // for example
.......
prof->SetName(prName); // I had lots of profiles to work on
// from several ROOT files and the naming
//seemed logical
.......
legend->AddEntry(prof->GetName(),"a label","an option");
.......
legend->Draw();
It worked fine as I expected. :)
Anyway, again, thanks a lot!
Cheers,
Allister
Allister Levi Sanchez wrote:
>> Hello ROOTers,
>>
>> Is it possible to add a TProfile entry into TLegend so that I can do, say,
>>
>> TProfile *prof = new TProfile(......);
>> ...
>> legend = new TLegend(0.6,0.6,0.9,0.9);
>> legend->SetHeader("header");
>> legend->AddEntry(prof,"entry label","p");
>> legend->Draw();
>>
>> I can't seem to pull it off. I'm using ROOT 3.00/02 on RedHat Linux 6.2.
>>
>> Thanks,
>>
>> Allister Levi Sanchez
>
> May be you can try to modify the MArkerstyle or put your profile in a
>histogram using ProjectionX.
>
>Luc
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:50 MET