RE: printing in Batch mode & picture size

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Wed, 13 Feb 2008 09:46:23 +0100


Hi,

Simply do:

c1.Print("temp.gif")

That should work with 5.14 (according to the release note I just checked).

Cheers, O.Couet

-----Original Message-----
From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch] On Behalf Of Nevzat Guler
Sent: Tuesday, February 12, 2008 11:26 PM To: Root Group
Subject: [ROOT] printing in Batch mode & picture size

	Hello,
	I am using root Version  5.14/00e
	While creating gif files in batch mode, for some reason I have
to
do the following (otherwise it does not wor):

   if(gROOT->IsBatch())
   {

      c1.Print("temp.eps");
      gSystem->Exec("pstopnm -ppm -xborder 0 -yborder 0 -portrait
temp.eps");
      char tempCommand[300];
      sprintf(tempCommand,"ppmtogif temp.eps001.ppm > %s",picName);
      gSystem->Exec(tempCommand);

   }

But, this creates a picture of certain size. Even if I change the canvas size to bigger dimensions, I still get the gif file in certain fixed dimensions..
Is there a way around this? I suspect the xborder and yborder values are the solution to my problem but I am not sure what to put for them.. Thank you for any input.

                                Nevzat Guler Received on Wed Feb 13 2008 - 09:46:29 CET

This archive was generated by hypermail 2.2.0 : Wed Feb 13 2008 - 17:50:01 CET