Hi Christian,
SetPalette is working as you expect. It is the saving in a .C file which does not work. Save your output in a PS or gif file and you will see it is ok. I will check what is wrong with .C.
Cheers, Olivier
-----Original Message-----
From: owner-rootdev_at_pcroot.cern.ch [mailto:owner-rootdev_at_pcroot.cern.ch]
On Behalf Of Christian Hansen
Sent: Friday, May 25, 2007 6:27 AM
To: roottalk; roottalk_at_pcroot.cern.ch
Subject: [ROOTDEV] SetPalette(1) in a compilable program... ?
Dear Rooters,
the attachment shows a small compilable test program that plots a TH2F
with the Draw option "COLZ". I'm trying to change the color Paletter by
putting gStyle->SetPalette(1) in different places in the code but it is
not working.
Why is that... ?
Root version 5.04/00
Cheers
/ Christian Hansen
Dep. of Phys. Office: +1 250 721 7710 Univ of Victoria Mobile: +1 250 588 0860PO Box 3055
http://www.zambuca.com/chris Received on Fri May 25 2007 - 09:50:14 CEST
This archive was generated by hypermail 2.2.0 : Fri May 25 2007 - 17:50:01 CEST