RE: histogram stats styles

From: Emanuel Machado <Emanuel-Machado_at_cytonome.com>
Date: Wed, 30 Aug 2006 12:25:01 -0400

Then, would

h->SetStat( newoption )

be a desirable overload?

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 Rene Brun
> Sent: Wednesday, August 30, 2006 9:30 AM
> To: Emanuel Machado
> Cc: roottalk_at_pcroot.cern.ch
> Subject: Re: [ROOT] histogram stats styles
>
> The doc is correct
>
> Rene Brun
>
> Emanuel Machado wrote:
> > Hmm. Doesn't work.
> >
> > The doc says the SetStats method accepts a Boolean, is just an on/off
> > switch. It does not change the actual options.
> >
> > 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 Rene Brun
> >> Sent: Tuesday, August 29, 2006 4:33 PM
> >> To: Emanuel Machado
> >> Cc: roottalk_at_pcroot.cern.ch
> >> Subject: Re: [ROOT] histogram stats styles
> >>
> >> see TH1::SetStats
> >> http://root.cern.ch/root/htmldoc/TH1.html#TH1:SetStats
> >>
> >> eg
> >> h->SetStats(111);
> >>
> >> Rene Brun
> >>
> >> Emanuel Machado wrote:
> >>
> >>> Interesting. Thanks for the idea.
> >>>
> >>> I tried it on the canvas of my compiled program and wasn't able to
> >>>
> >> select
> >>
> >>> the stats object. It only selected the histogram. However, I was able
> to
> >>>
> >> do
> >>
> >>> it the interactive way with the hsimple example.
> >>>
> >>> One can "cheat", of course, using the editor to accomplish what you
> want
> >>>
> >> and
> >>
> >>> then save it as a macro. I did that and looked at the generated code:
> it
> >>> creates ptstats externally, changes what is necessary, and then links
> it
> >>>
> >> to
> >>
> >>> the histogram object. This for sure allows you to do anything you want
> >>>
> >> with
> >>
> >>> the statistics. But is there a simpler way?
> >>>
> >>> 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 Ilka Antcheva
> >>>> Sent: Tuesday, August 29, 2006 3:07 PM
> >>>> To: Emanuel Machado; roottalk_at_pcroot.cern.ch
> >>>> Subject: RE: [ROOT] histogram stats styles
> >>>>
> >>>> Hi Emanuel,
> >>>>
> >>>> You can set different TPaveStats options via provided user interface.
> >>>>
> >> In
> >>
> >>>> the canvas window you can activate the graphics editor vie View menu
> /
> >>>> Editor. The editor will appear on the left of the canvas window and
> >>>>
> >> will
> >>
> >>>> provide user interface according to the selected object in the
> canvas
> >>>> window. To select an object you should click on it with left mouse
> >>>>
> >> button.
> >>
> >>>> If you select TPaveStats object, the user interface for it will
> appear
> >>>>
> >> on
> >>
> >>>> the editor frame and you can select different options via it. They
> will
> >>>>
> >> be
> >>
> >>>> applied only for the selected stats and will not change anything for
> >>>>
> >> the
> >>
> >>>> others. A picture of this interface can be seen at
> >>>> http://root.cern.ch/root/htmldoc/TPaveStatsEditor.html
> >>>>
> >>>> Best regards, Ilka
> >>>>
> >>>> ________________________________
> >>>>
> >>>> From: owner-roottalk_at_pcroot.cern.ch on behalf of Emanuel Machado
> >>>> Sent: Tue 8/29/2006 8:32 PM
> >>>> To: roottalk_at_pcroot.cern.ch
> >>>> Subject: RE: [ROOT] histogram stats styles
> >>>>
> >>>>
> >>>>
> >>>> 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 Wed Aug 30 2006 - 18:25:48 MEST

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