Re: Histo properties

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Fri, 13 Jul 2007 23:24:38 +0200


Hi Monika,

Try, for example:

    h->DrawCopy();
    h->SetFillColor(2);
    h->SetFillStyle(3002);
    h->GetXaxis()->SetRange(30,60);
    h->Draw("same");

Rene Brun

Monika Sharma wrote:
> Hello Rooters,
>
> I have a 1D histogram of, say for example z vertex (+,- 60 cm).
> However, in my analysis I only use +- 30 cm.
> So I want to color only that range in my histogram to show the
> z vertex range used in the analysis. Can anyone help me how to do it?
>
> Thanks very much in advance.
>
> Regards
> Monika
Received on Fri Jul 13 2007 - 23:24:38 CEST

This archive was generated by hypermail 2.2.0 : Sat Jul 14 2007 - 05:50:02 CEST