[ROOT] legend

From: Christian Hansen (Christian.Hansen@cern.ch)
Date: Tue May 06 2003 - 02:27:46 MEST


Hi Rooters,

I'm trying to get TLegend work with this piece of code
	
  TLegend aLegend;
  aLegend = new TLegend(0.5,0.8,1.0,0.2);
  aLegend->AddEntry(graphMIS_gran1,"MIS, gran1","p");
  aLegend->AddEntry(graphMIS_gran2,"MIS, gran2","p");
  aLegend->Draw();

But the legend never shows up in my plot. What is wrong?
I've attached a test.cxx file which plots a multigraph 
and in the very end of the program it tries to make a legend.
How should I change this file so that I see the legend
and it contents?

Best regards,
-- 
/ Christian Hansen

===============================================
161-01-016            Office: +41-(0)22-7677598
CERN              
CH-1211 Geneve 23
Switzerland
-----------------------------------------------
Mobile    : +41-(0)79-7742530
Home Page : http://welcome.to/Christian_Hansen
            http://cern.ch/Christian.Hansen





This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:11 MET