Re: problem with drawing two histgrams in the same canvas

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Fri, 31 Mar 2006 08:26:22 +0200 (MEST)


You can set the "stats" property for each histogram, eg   h1.SetStats(0);
  h1.setStats(1111);
independently of the drawing order. This property remains attached to the object.

Rene Brun

On Thu,
30 Mar
2006, Xianguo Lu wrote:

> Dear Rooters,
>
>
>
> I want to draw two histgrams in one canvas:
>
>
>
> h1->Draw();
>
> gStyle->SetOptStat(0);
>
> h2->Draw("same");
>
> gStyle->SetOptStat(0);
>
>
>
>
>
> For the first one, the StatBox does not appear, but for the second, the
> StatBox is still displayed. How can I make the StatBoxes in the two
> histgrams NOT being displayed?
>
>
>
> Thanks in advance!
>
>
>
> Cheers!
>
> Xianguo Lu
>
>
>
> PKU, China
>
>
>
>
Received on Fri Mar 31 2006 - 08:26:30 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:58 MET