RE: Stats box in a TMultiGraph and significant digits

From: Olivier Couet <>
Date: Fri, 2 Sep 2005 10:24:29 +0200


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:                            Phone:   +41 22
WWW:                    Fax:     +41 22

-----Original Message-----
[] On Behalf Of federico
Sent: Thursday, September 01, 2005 6:51 PM
To: Rafael Arco Arredondo
Subject: Re: [ROOT] Stats box in a TMultiGraph and significant digits

the answer to your second question is:

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


Rafael Arco Arredondo wrote:

>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,
Received on Fri Sep 02 2005 - 10:24:33 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:12 MET