how to break one long line of legend into two lines?

From: Wei Xie <wxie_at_purdue.edu>
Date: Fri, 28 May 2010 11:12:34 -0400


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:12:42 CEST

This archive was generated by hypermail 2.2.0 : Fri May 28 2010 - 17:50:01 CEST