RE: [ROOT] adjusting stats display when not in interactive mode

From: Philippe Canal (pcanal@fnal.gov)
Date: Fri Aug 22 2003 - 20:53:34 MEST


Hi Chris,

You probably just have to add the proper (virtual) screen refreshing method.
The information of gStyle is used only at the time the histogram is paint
(even
if it is a virtual painting).  Hence you probably have to do:

	gStyle->SetOptFit();
	h->Draw();
	gPad->Update();

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Chris Hayward
Sent: Friday, August 22, 2003 8:57 AM
To: ROOT Talk Mailing List
Subject: [ROOT] adjusting stats display when not in interactive mode


Hello ROOTers,
I am creating histograms from a tree and saving them to disk. I want to
display fit parameters on the histos before saving. However, it seems that
I cannot use gStyle->SetOptFit() when not in interactive mode. Is there a
way to do this otherwise? I could not find anything in the $ROOTSYS/etc/
system.rootrc file.

I am using 3.05/07 with gcc 2.96 on lxplus.

Thanks,
Chris



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:15 MET