Re: boundingbox of eps file

From: Wei Guo <wguo126_at_nyahnyahspammersnyahnyah>
Date: Tue Aug 14 2012 - 14:59:00 MDT

Thanks, Rick.

It is OK if I write a 'ps'.

Actually, I used the do loop to generate many eps files. See

    do nf=0,nfili-1
      print(nf)
      pltName = "bm_mv_"+ sprinti("%0.3i", nf)
      wks = gsn_open_wks("eps",pltName)
      gsn_define_colormap(wks,"wh-bl-gr-ye-re")
      fdat = fili(nf)
      data = asciiread(fdat,(/m,n/),"float")
      map = gsn_contour_map(wks,data,map_resources)
    end do

Then I used the command system("convert -delay 10 -loop 1 *.eps
my_movie.mpeg")

to make my movie. An error popped out, cause the boundingbox of eps
files are not correct.

Best

Wei

Quoting Rick Brownrigg <brownrig@ucar.edu>:

> Hi Wei,
>
> I unfortunately am unable to duplicate this with plots I've tried.
> Is there something unusual about the plot you are trying to create;,
> e.g, is it a non-standard size, or in landscape mode, etc.? Is
> everything OK if you write a "ps" vs. an "eps"?
>
> Rick
>
>
> On Aug 11, 2012, at 7:36 PM, Wei Guo wrote:
>
>> Hello,
>>
>> I use the command
>>
>> wks = gsn_open_wks("eps",pltName)
>>
>> to create an eps figure. Sometimes I found that the boundingbox is
>> weird, such as
>>
>> %%BoundingBox: -1 125 1 1041865115.
>>
>> My ncl is installed based on cygwin.
>>
>> Does anybody know how to fix the problem or any command to set the
>> boundingbox manually?
>>
>> Thanks very much.
>>
>> Best
>>
>> Wei
>>
>> _______________________________________________
>> 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
Received on Tue Aug 14 14:59:07 2012

This archive was generated by hypermail 2.1.8 : Wed Aug 15 2012 - 08:12:08 MDT