Hi Gerco, Thanks for reporting this problem in case one superimpose two histograms with different ranges and with error bars. Problem now fixed in the development version. Rene Brun Gerco Onderwater wrote: > > Hi Rooters, > > I experience the following, most likely easily solved problem: When I > plot the subrange of one histo and plot another one on top of it, the > second histo doesn't stay within the range of the first one. This only > happens when the second histo is plotted with error bars (either by giving > the "e" option when plotting, or when histo2->Sumw2() was used earlier). > > I use root version 2.21/08 on a debian Linux PC. > > Demo macro: > > { > TH1D* one = new TH1D("one","first one",100,0,1); > one->FillRandom("pol0"); > one->SetLineColor(1); > one->GetXaxis()->SetRange(20,30); > one->Sumw2(); > > TH1D* two = new TH1D("two","second one",100,0,1); > two->FillRandom("pol0"); > two->SetLineColor(2); > two->Sumw2(); > > one->Draw(""); > two->Draw("same"); > } > > -- Gerco > > Dr. C.J.G. Onderwater > Nuclear Physics Laboratory > 312 Loomis Laboratory of Physics > University of Illinois at Urbana-Champaign > 1110 West Green Street > Urbana, IL 61801-3080 > Phone : (217) 244-7363 > Fax : (217) 333-1215 > E-mail: onderwat@uiuc.edu
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:32 MET