See:
http://root.cern.ch/root/html/TLatex.html#L3
-----Original Message-----
From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch] On Behalf Of Wei Xie
Sent: Friday, May 28, 2010 5:13 PM
To: roottalk (Mailing list discussing all aspects of the ROOT system.)
Subject: [ROOT] how to break one long line of legend into two lines?
In the following legend, the 2nd line is too long to be held in the figure. Is it possible to break it into two lines?
TLegend* lg0 = new TLegend(0.30,0.55,0.85,0.86, "", "NDC" ); lg0->Draw(); lg0->AddEntry(g1, "this analysis", "P" ); lg0->AddEntry(g2, "some others result that was carried on many many years ago on something measurement, etc ", "P"); lg0->AddEntry(g3, "theory#1", "L"); lg0->AddEntry(g4, "theory#2", "L"); lg0->SetTextSize(0.04); lg0->SetTextFont(42); lg0->Draw();
Thanks
--Wei
Received on Fri May 28 2010 - 17:15:24 CEST
This archive was generated by hypermail 2.2.0 : Fri May 28 2010 - 17:50:01 CEST