Re: Re: how to draw in a ps file w ithout margin?

From: Ding Hengtong <dinght_at_iopp.ccnu.edu.cn>
Date: Sun, 9 Apr 2006 16:51:44 +0800 (CST)


On Sun, 9 Apr 2006, Xianguo Lu wrote:

> Hi Ding Hengtong,
>
> I have tried. But even though I set all the margin to be 0, there are
still margins beyond the canvas in the ps file.
>
> My code involving the ps file is ( c is the pointer of the canvas )
>
> c->Print("test.ps")
>
> Cheers!
> Xianguo Lu

Hi Xianguo,

    I guess your real problem does not lie at the setting of your macro but the difference between the formats of figures. And I suggest you'd better use "eps" format instead of "ps" format.

    When you open a "eps" file created by ROOT in gsviewer, it's normal that there will be a big blank(may be the "margin" you mentioned before) above the figure but it's OK when you insert this figure into Latex.

    If you converted the "eps" file into "pdf", the "margin" will disappear automatically.

    hope this helps.

 hengtong


Received on Sun Apr 09 2006 - 10:45:45 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:58 MET