Joe, No idea of what you are doing. Here is an example { TCanvas *c1 = new TCanvas("c1"); TH1F h("h","test",100,-4,4); h.FillRandom("gaus",10000); h->Draw(); Float_t ymax = h.GetMaximum(); TLine *line = new TLine(-3,ymax,3,ymax); line->SetLineColor(kRed); line->Draw(); } Rene Brun joe robe wrote: > > how can i draw a line on an existing histogram ? > TLine->Draw the line disappears "behind" the histogram > ! > > joe > > __________________________________________________ > Do You Yahoo!? > NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. > http://geocities.yahoo.com/ps/info1
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:02 MET