Hi Paula, By default, TLegend takes NDC [0,1] (see documentation). I have modified your macro and show the alternative using the default NDC. You also had an inversion between x and y. Rene Brun { TH1F *efficiency = new TH1F("efficiency","efficiency",100.,40.,100.); efficiency->Fill(50.,14.); efficiency->Fill(60.,90.); efficiency->SetMarkerStyle(20.); efficiency->DrawCopy("pe"); leg = new TLegend(80., 80., 95.,90.,"",""); //draw in user coordinates // leg = new TLegend(.7,.7,.85,.8); //draw in NDC leg.AddEntry(efficiency,"total efficiency","p"); leg.Draw(); } Paula Collins wrote Hello again: Sorry, I missed a line, but even when I do { TH1F *efficiency = new TH1F("efficiency","efficiency",100.,40.,100.); efficiency->Fill(50.,14.); efficiency->Fill(60.,90.); efficiency->SetMarkerStyle(20.); efficiency->DrawCopy("pe"); leg = new TLegend(80., 100., 80.,100.); leg.AddEntry(efficiency,"total efficiency","p"); leg.Draw(); } the legend does not appear. I am grateful as ever if someone can advise, Paula
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:28 MET