Re: How to delete blank marge of ps file

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Oct 25 2010 - 08:19:35 MDT

Dear Feng,

I think in this case, you will be better off using ImageMagick to convert your file from PS to PNG. This way you can
use the "-trim" option with "convert" to trim off those margins.

--Mary

On Oct 24, 2010, at 7:32 PM, ChenFeng wrote:

> Hi,Mary,
>
> I'm sorry for replying you so late due to I go outside for one week.
>
> I have tried this two resources and also the "wkPaperWidthF" by using v5.2.1.
> unfortunatly, it's not I want.
>
> I attached two PNG files in this mail. the "test.png" is the plot that with large blank margin in the
> top and bottom of the paper. While the "test2.png" is the plot what i want. (the PNG file is convert
> from the PS file generated from NCL.)
>
> I found that what ever I change the "wkPaperWidthF" resource or other, the background of aways
> a A4 paper, and only the plot become bigger or smaller or outside the paper or something. I can not
> delete the blank margins.
>
> I know I can use "gsnMaxmize" to maximize the plot, but in such way the plot will be in "landscape" type.
> Because I have a lot of figures to be plot, so I can not be delete the margin or circumgyrate the plot
> by hands.
>
> thank you very much.
>
> Feng
> ======= 2010-10-15 23:38:11 您在来信中写道:=======
>
>> Feng,
>>
>> Try using gsnPaperWidth and gsnPaperHeight:
>>
>> http://www.ncl.ucar.edu/Document/Graphics/Resources/gsn.shtml#gsnPaperHeight
>> http://www.ncl.ucar.edu/Document/Graphics/Resources/gsn.shtml#gsnPaperWidth
>>
>> --Mary
>>
>> On Oct 14, 2010, at 1:30 AM, ChenFeng wrote:
>>
>>> Hi,Dave
>>>
>>> I have tried with the method in the FAQ. However, it only can change the position and size of the plot.
>>> Which I wanted is how to change the size of the paper. I have found the resource named "wkPaperWidthF",
>>> unfortunatly, it only works in version 5.2.0 and later. So, I'm stucked.
>>>
>>> (The gcc version is 3.4.6, and no NCLv5.2.1 complied with this gcc version availabe for download. )
>>>
>>> Any suggestions?
>>>
>>> thank you very much.
>>>
>>> Feng
>>>
>>> ======= 2010-10-14 09:41:32 您在来信中写道:=======
>>>
>>>> This is in the FAQ on line:
>>>>
>>>> http://www.ncl.ucar.edu/FAQ/#vis_016
>>>>
>>>> On 10/13/2010 7:25 PM, ChenFeng wrote:
>>>>> Dear all,
>>>>>
>>>>> I have made a plot with ncl in PS file. But I found there is many blank marge in the file.
>>>>> Does anyone know how to delete the blank marge to make the plot more good-looking.
>>>>>
>>>>> (In addition, my NCL version is v5.1.1. Anybody has the newest NCL version compiled by gcc v3.4.6)
>>>>>
>>>>> Thank you very much.
>>>>>
>>>>> Feng Chen
>>>>> 2010-10-14
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> ncl-talk mailing list
>>>>> List instructions, subscriber options, unsubscribe:
>>>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>> _______________________________________________
>>>> ncl-talk mailing list
>>>> List instructions, subscriber options, unsubscribe:
>>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>
>>> = = = = = = = = = = = = = = = = = = = =
>>> _______________________________________________
>>> ncl-talk mailing list
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>
> = = = = = = = = = = = = = = = = = = = =
> <test.png><test2.png>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Oct 25 08:19:41 2010

This archive was generated by hypermail 2.1.8 : Fri Oct 29 2010 - 13:09:32 MDT