Hi Paul, You said: > The problem is that if you first draw such a histogram, and on the next > line draw it again with "P HIST SAME", the markers are not in the center > of the bin, but they appear to be above the center of the previous bin. Seems to me the fact you use the option SAME is not the only problem. The combination of the option HIST and L has a very weird effect too. I have simplified your example to the following one: dp () { TFile* tf = new TFile("histos_bjpsiks_p13_tracking_aa_hidca.root"); TCanvas* tc = new TCanvas("test","test"); tc->Divide(1,2); tc->cd(1); gPad->SetLogx(); gPad->SetLogy(); dca_rec_pi->Draw("HIST"); tc->cd(2); gPad->SetLogx(); gPad->SetLogy(); dca_rec_pi->Draw("L HIST"); } As you can see, on the second plot a "line plot" is drawn together with the normal histogram representation. The line plot is correct but the histogram representation is shifted by half a bin on the right ! you can see it clearly by comparing with the normal plot above. I am investigating the problem. Cheers, Olivier -- Org: CERN - European Laboratory for Particle Physics. Mail: 1211 Geneve 23 - Switzerland E-Mail: Olivier.Couet@cern.ch Phone: +41 22 7676522 WWW: http://cern.ch/Olivier.Couet/ Fax: +41 22 7677155
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET