Re: saving images

From: Feverati <feverati_at_lapp.in2p3.fr>
Date: Mon, 7 May 2012 21:45:38 +0200


Thank you Adrien.
In my case, I don't see any difference using the batch mode or not. On the other hand, my problem shows up for large images only (but they never exceed the screen); in some sense, below a certain size (that I still don't know), everything works fine.

Maybe I found: I have a command
gStyle->SetPaperSize(var/10.0,20)
The problem comes up when var/10.0 (centimeters) is bigger than the standard a4 paper size. Is it a feature or a bug?

Giovanni

On 05/05/12 11:07, Adrien Matta wrote:
> Hi Giovanni,
>
> I experienced problems that sound similar without being exactly the same
> (sorry if it does not answer your question) so just to share my little experience:
> The problem occured when the canvas is resized by root because it overfit the
> screen. I found two solutions, the first one is to launch root in batch mode
> (root -b), which mean you will not see the canvas, or to instantiate the
> canvas with an appropriate size. The problem does not occure when you save the
> canvas as a macro because it is already resized I guess.
>
> Using the batch mode is also the only way I found to obtain High resolution png.
>
> Regards, ADrien
>
>
> On Thu, May 3, 2012 at 9:55 AM, Feverati <feverati_at_lapp.in2p3.fr
> <mailto:feverati_at_lapp.in2p3.fr>> wrote:
>
> Hi Olivier
>
> the program that generates my plots is very long and with a complicated
> input part. Thus, I have tried to generate a macro by
> File -> Save -> filename.C
> Well, it turns out that the macro filename.C works perfectly without
> problems while the problem still persists in the original program.
>
> I have also observed that files saved in jpg, gif or png formats are fine.
> The problem appears with pdf only.
>
> Giovanni
>
>
>
>
>
> On 30/04/2012 23:31, Olivier Couet wrote:
>
> Can you send a macro reproducing the problem ?
>
>
> Le 30 avr. 2012 à 17:41, "Feverati"<feverati_at_lapp.in2p3.fr
> <mailto:feverati_at_lapp.in2p3.fr>> a écrit :
>
> Dear experts
>
> I have the following problem in saving images.
> An image is correctly saved if eps format is used but is wrongly saved
> if I use pdf. Actually, it partially sliced out, as you can see in
> the attached files.
> The print goes by a very standard
>
> c1->Print(file.eps) or file.pdf command
>
> Root Version 5.30/06 10 January 2012
> on a Fedora 16 machine.
>
> Thank you in advance,
>
> Giovanni Feverati
>
>
> --
> Dr. Giovanni Feverati
> Gemini team (biophysics)
> Laboratoire de physique theorique
> 74941 Annecy-le-Vieux,France
> tel: 33450091682
> feverati_at_lapp.in2p3.fr <mailto:feverati_at_lapp.in2p3.fr>
>
> <d_4RVE_EB_1_10,1_200.eps>
> <d_4RVE_EB_1_10,1_200.pdf>
>
>
>
> --
> Dr. Giovanni Feverati
> Gemini team (biophysics)
> Laboratoire de physique theorique
> 74941 Annecy-le-Vieux,France
> tel: 33450091682
> feverati_at_lapp.in2p3.fr <mailto:feverati_at_lapp.in2p3.fr>
>
>
Received on Mon May 07 2012 - 21:45:51 CEST

This archive was generated by hypermail 2.2.0 : Tue May 08 2012 - 11:50:01 CEST