RE: [ROOTDEV] gStyle->SetPalette for a .C file ?

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Wed, 19 Nov 2008 16:48:23 +0100


I'll look at this.

-----Original Message-----
From: owner-rootdev_at_root.cern.ch [mailto:owner-rootdev_at_root.cern.ch] On Behalf Of Christian Hansen
Sent: Wednesday, November 19, 2008 4:46 PM To: roottalk_at_root.cern.ch; rootdev_at_root.cern.ch Subject: [ROOTDEV] gStyle->SetPalette for a .C file ?

Dear Rooters,

is there anyway to make the palette definition work when "plotting" on a .C file?

In a compilable program linked with root I define my own palette, I draw a
histogram with the "colz" option and then I print the canvas on both a .C file and a .pdf file:

	canvas->Print("name.C");
	canvas->Print("name.pdf");

In the .pdf file the palette I defined looks good, but when I open the .C file

	root
	.x name.C

the palette I defined is not there, and I cannot do gStyle->SetPalette in the
root prompt since the palette I defined is complicated.

How can I do to see my own palette in the .C file ?

Cheers
/Christian Received on Wed Nov 19 2008 - 16:48:27 CET

This archive was generated by hypermail 2.2.0 : Wed Nov 19 2008 - 23:50:01 CET