[ROOT] Histogram drawing with "e3" on a log scale

From: David Bailey (Antares Post Graduate) (d.bailey2@physics.ox.ac.uk)
Date: Fri Apr 20 2001 - 13:40:37 MEST


Hi all,

  Is the e3 option for drawing histograms written to work when drawing on a
log vertical scale? I've found the error band and the data points don't line
up correctly. I've attached an eps file showing the effect. The macro used
to create it is: 

{

TCanvas *c = new TCanvas("c","Title");
c->Divide(2);

c->cd(1);

TH1D *h1 = new TH1D("h1","Linear plot",100,-5,5);
h1->FillRandom("gaus",1000);
h1->SetFillColor(2);
h1->SetMarkerStyle(2);
h1->Draw("e3");

c->cd(2);
gPad->SetLogy();

TH1D *h2 = new TH1D("h2","Log plot",100,-5,5);
h2->FillRandom("gaus",1000);
h2->SetFillColor(2);
h2->SetMarkerStyle(2);
h2->Draw("e3");

c->cd();

}

All this is using root 3.00/06 (30th March) on both RH Linux 6.1 and Alpha
OSF1 via eXceed6 on WinNT4. Thank you for your help,

  Cheers, Dave Bailey

------------------------------------------\
-   David Bailey : Antares post-Graduate  /
-   Nuclear and Astrophysics Laboratory  /
-   Keble Road, Oxford OX1 3RH   /------/
-   (01865) 273442   /----------/ d.bailey2@physics.ox.ac.uk
--------------------/ http://www-pnp.physics.ox.ac.uk/~daveb 






This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:43 MET