Hi,
This is now fixed in the svn trunk.
The option "][" did not work when the Frame line width was > 1.
Thanks to have noticed it.
O.Couet
-----Original Message-----
From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch] On Behalf Of Philip Rodrigues
Sent: Saturday, March 21, 2009 5:38 PM
To: roottalk_at_root.cern.ch
Subject: [ROOT] Histogram drawing issues
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 Mon Mar 23 2009 - 15:52:27 CET
This archive was generated by hypermail 2.2.0 : Mon Mar 23 2009 - 17:50:01 CET