Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[ROOT] Stats box in a TMultiGraph and significant digits

34 views
Skip to first unread message

Rafael Arco Arredondo

unread,
Sep 1, 2005, 12:08:39 PM9/1/05
to root...@pcroot.cern.ch
Hello,

I have two questions:

1. Is there any way to display the stats box with a TMultiGraph, in the
same way it is shown when you plot a TH2? If not, how can I convert in a
easy way a TMultiGraph into a TH2?

2. How can I change the default number of significant digits (it is 4)
which is used to show the mean value, the rms, etc. in the stats box?

Thanks in advance for your help,

Rafa


federico

unread,
Sep 1, 2005, 12:51:05 PM9/1/05
to Rafael Arco Arredondo, root...@pcroot.cern.ch
Hi,
the answer to your second question is:

gStyle->SetStatFormat(const char* format = "6.4g")

Cheers,
Federico

Olivier Couet

unread,
Sep 2, 2005, 4:24:29 AM9/2/05
to Federico Roncarolo, Rafael Arco Arredondo, root...@pcroot.cern.ch
Hi,

Answer to your question 1:

Multigraphs are collections of TGraph plotted all together so common
minimum and maximum can be computed. TGraph doesn't have statistics
(only TH1,2,3 have). So you cannot get statistics box on a multigraph. I
am not sure how you would like to convert a Multigraph to a TH2... May
be send a running little example to this list describing a bit more your
problem.

Cheers, Olivier

--
Org: CERN - European Laboratory for Particle Physics.
Mail: 1211 Geneve 23 - Switzerland Mailbox: J25910

E-Mail: Olivie...@cern.ch Phone: +41 22
7676522
WWW: http://cern.ch/Olivier.Couet/ Fax: +41 22
7670300

0 new messages