Histogram drawing issues

From: Philip Rodrigues <p.rodrigues1_at_physics.ox.ac.uk>
Date: Sat, 21 Mar 2009 16:37:51 +0000


Hi roottalk,
I'm seeing two odd behaviours, and I'm wondering whether I've misunderstood something, or I've run into some bugs.

The first problem is that the value of gStyle->GetFrameLineWidth() affects whether the leftmost vertical line of a histogram is drawn, as demonstrated by the following macro (also attached):

void histdrawbug()
{
  // Setting frame line width to 1 prevents the leftmost vertical line   // from being drawn over the ordinate
  gStyle->SetFrameLineWidth(2);
  TH1F* h=new TH1F("foo", "bar", 10,0,10);

  h->SetLineColor(kRed);
  h->FillRandom("gaus", 1000);
  h->Draw();

}

The second issue is that the histogram drawing option "hist e ][" doesn't do what I expect it to, namely draw the histogram with errors and vertical lines between the bins, but with no vertical lines at the start and end. Instead I get no vertical lines at all.

Regards,
Philip

Received on Sat Mar 21 2009 - 17:37:58 CET

This archive was generated by hypermail 2.2.0 : Mon Mar 23 2009 - 17:50:01 CET