Hi Ahmet,
A short example:
void h2() {
TH1F *h1 = new TH1F("h1","original",100,-3,3);
h1->FillRandom("gaus",5000);
h1->Draw();
TH1F *h2 = (TH1F*)h1->Clone();
h2->GetXaxis()->SetRange(55,64);
h2->SetFillColor(kRed);
h2->Draw("same");
}
Rene Brun
Ahmet Sedat Ayan wrote:
>
> Hi Rooters,
> Is there easy way of selecting a region and changing the Fill Atttributes
> of this region of an histogram?
>
> thanx,
> ahmet
>
> ***************
>
> Ahmet Sedat Ayan
>
> Physics & Astronomy Dept.
> Van Allen Hall
> University of Iowa
> Iowa City, IA, 52242
>
> Voice : (++ 1 319) 335-2832 (W) (GMT-6)
> Occupation : Ph.D Candidate (But still dreamer!)
> e-mail : ayan@cms.physics.uiowa.edu
> web : http://jazz.physics.uiowa.edu/~ayan
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:56 MET