RE: histogram stats styles

From: Emanuel Machado <Emanuel-Machado_at_cytonome.com>
Date: Tue, 29 Aug 2006 14:32:16 -0400


How could I set it on a single histogram (i.e. not disrupting others)? I tried to get the stats object as

TPaveStats *stats = h->GetListOfFunctions()->FindObject("stats"); stats->SetOptStat( newoption )

(as in stressGraphics.cxx)

But stats here is always returned NULL.

Thanks,

Emanuel



Emanuel Machado, PhD.
Senior Engineer    

Cytonome, Inc.
27 Drydock Ave
Boston, MA 02210
Voice: (617) 330-5030 ext. 237
Fax: (617) 330-5031
Website: www.cytonome.com  

Email: Emanuel-Machado_at_cytonome.com
> -----Original Message-----
> From: owner-roottalk_at_pcroot.cern.ch [mailto:owner-roottalk_at_pcroot.cern.ch]
> On Behalf Of Emanuel Machado
> Sent: Tuesday, August 29, 2006 11:57 AM
> To: 'Rene Brun'
> Cc: roottalk_at_pcroot.cern.ch
> Subject: RE: [ROOT] histogram stats styles
>
>
> Aha! It works! Thanks for the pointer to the include file.
>
> Emanuel
>
> ----
> Emanuel Machado, PhD.
> Senior Engineer
>
>
>
> Cytonome, Inc.
> 27 Drydock Ave
> Boston, MA 02210
> Voice: (617) 330-5030 ext. 237
> Fax: (617) 330-5031
> Website: www.cytonome.com
>
> Email: Emanuel-Machado_at_cytonome.com
>
> > -----Original Message-----
> > From: Rene Brun [mailto:Rene.Brun_at_cern.ch]
> > Sent: Tuesday, August 29, 2006 11:49 AM
> > To: Emanuel Machado
> > Cc: roottalk_at_pcroot.cern.ch
> > Subject: Re: [ROOT] histogram stats styles
> >
> > This should also work in non-interactive mode. Simply
> > #include "TStyle.h"
> > gStyle->SetOptStat( newoption );
> >
> > Rene Brun
> >
> > On Tue, 29 Aug 2006,
> > Emanuel Machado wrote:
> >
> > > Hi,
> > >
> > >
> > >
> > > I realize that this may be a newbye question. Please bear with me.
> > >
> > >
> > >
> > > Looking at the user manual, the way to change the way a histogram
> > presents a
> > > stats box is to use
> > >
> > >
> > >
> > > gStyle->SetOptStat( newoption );
> > >
> > >
> > >
> > > This works well in interactive mode. What would be the equivalent way
> to
> > do
> > > it in non-interactive (i.e compiled) mode?
> > >
> > >
> > >
> > > Many thanks,
> > >
> > >
> > >
> > > Emanuel
> > >
> > >
> > >
> > > ----
> > >
> > > Emanuel Machado, PhD.
> > >
> > > Senior Engineer
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Cytonome, Inc.
> > >
> > > 27 Drydock Ave
> > >
> > > Boston, MA 02210
> > >
> > > Voice: (617) 330-5030 ext. 237
> > >
> > > Fax: (617) 330-5031
> > >
> > > Website: www.cytonome.com
> > >
> > >
> > >
> > > Email: Emanuel-Machado_at_cytonome.com
> > >
> > >
> > >
> > >
>
>
Received on Tue Aug 29 2006 - 20:32:55 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:00 MET