producing stats box in batch mode

From: Roland Kuhn <rkuhn_at_e18.physik.tu-muenchen.de>
Date: Sat, 22 Jan 2005 18:48:15 +0100


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dear Experts!

I'm writing a library for the management of (value,error) pairs, which among other things can produce a histogram of so-called pulls. This histogram is created while having cd()-ed into a user-supplied TStyle, then it is drawn on a newly created TCanvas("",""), then the original style is restored. Requiring a display of the canvas is not an option. The user of the library then gets a pointer to this canvas and can do as he/she likes. The most common operation is to save the canvas, e.g. with c->SaveAs("canvas.eps"). This works fine, but the stats box, which is only then created, does not pick up the OptFit and OptStat settings which were in effect at the time of creation. I solved this problem by issuing a

c->Print("/dev/null","eps")

before changing back to the old TStyle, but this is ugly as hell. Is there an official way to create the stats box (also needed for other modifications) on demand for a batch canvas?

Also, it would be nice if WaitPrimitive() would at some point return in that case, since no event can ever be received...

Ciao,

     Roland

+---------------------------+-------------------------+

| TU Muenchen | |
| Physik-Department E18 | Raum 3558 |
| James-Franck-Str. | Telefon 089/289-12592 |
| 85747 Garching | Telefax 089/289-12570 |
+---------------------------+-------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFB8pHmI4MWO8QIRP0RAuj8AKCWGOEmqs337Iu0VUz3OgIrDmQbIACdG8h/ bfzpKbFKfsuHT9IV0U8P/EE=
=lV8H
-----END PGP SIGNATURE----- Received on Sat Jan 22 2005 - 18:48:31 MET

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