Re: Problem saving canvas to png

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Fri, 8 Apr 2011 13:27:56 +0000


Ah ok .. send me the files .. And also a simple macro reproducing the problem. Cheers,
Olivier

From: Alexandros Attikis <attikis_at_cern.ch<mailto:attikis_at_cern.ch>> Date: Fri, 8 Apr 2011 15:25:12 +0200
To: Olivier Couet <Olivier.Couet_at_cern.ch<mailto:Olivier.Couet_at_cern.ch>> Cc: Alexandros Attikis <Alexandros.Attikis_at_cern.ch<mailto:Alexandros.Attikis_at_cern.ch>>, "roottalk (Mailing list discussing all aspects of the ROOT system.)" <roottalk_at_cern.ch<mailto:roottalk_at_cern.ch>> Subject: Re: [ROOT] Problem saving canvas to png

no in fact I am using adobe acrobat reader.

Cheers,
Alexandros

On Apr 8, 2011, at 3:19 PM, Olivier Couet wrote:

I guess you are looking at ps/pdf files using gv and you encountered the problem mentioned here: http://root.cern.ch/drupal/faq#n562

From: Alexandros Attikis
Sent: Friday, April 08, 2011 3:18 PM
To: Olivier Couet
Cc: roottalk (Mailing list discussing all aspects of the ROOT system.) Subject: Re: [ROOT] Problem saving canvas to png

Oh and apparently in pdf and ps formats, the filling of the histograms disappears (i.e. only the histogram lines remain but their fill area is empty). I don't know if this problem s related at all to the png problem.

Cheers,
Alexandros

On Apr 8, 2011, at 3:13 PM, Olivier Couet wrote:

Ok I will .

From: Alexandros Attikis
Sent: Friday, April 08, 2011 3:02 PM
To: Olivier Couet
Cc: roottalk (Mailing list discussing all aspects of the ROOT system.) Subject: Re: [ROOT] Problem saving canvas to png

Hi Olivier,

I am running on SLC5, ROOT 5.26.00
I do not set "ROOT->SetBatch(true);"

Cheers,
Alexandros

On Apr 8, 2011, at 2:58 PM, Olivier Couet wrote:

Hi,

On which machine and with ROOT version do you see this problem ? Are you running in batch or interactive mode ?

Cheers,
Olivier

-----Original Message-----
From: owner-roottalk_at_root.cern.ch<mailto:owner-roottalk_at_root.cern.ch> [mailto:owner-roottalk_at_root.cern.ch] On Behalf Of Alexandros Attikis Sent: Friday, April 08, 2011 2:56 PM
To: roottalk (Mailing list discussing all aspects of the ROOT system.) Subject: [ROOT] Problem saving canvas to png

Hi all,

I have created a plotter class that mainly manipulates TH1D's and THStacks (weighting, setting styles etc..) before plotting multiple them on a TCanvas.

The problem I am experiencing is that when I save the canvas to png format, the png image is somewhat corrupted, in the sense that at the half bottom of the picture the top half part is repeated. It's like the picture is "tiled". Has anyone experienced this problem before? Any hints of how to avoid it?

Cheers,
Alexandros Received on Fri Apr 08 2011 - 15:28:01 CEST

This archive was generated by hypermail 2.2.0 : Fri Apr 08 2011 - 17:50:02 CEST