Re: Histogram drawing issues

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Sat, 21 Mar 2009 18:40:37 +0100


Olivier will process your mail on Monday.

Rene Brun

Philip Rodrigues wrote:
> 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 - 18:40:55 CET

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