[Thread Prev][Thread Next][Index]

Re: [ferret_users] problem with .ps output, v6.85



Sergey Gromov wrote:

> - in the interactive mode the second colorbar colors are sporadically spoiled (depends on the no. of colors in the first colorbar, window and gif output look OK),
> - in the '-batch .ps' mode the final .ps colors are OK, but the part of the image is lost - cropped out.
> 
> is there a way around these issues?

please try using set mode metafile / cancel mode metafile for your
graphics. You need to process the metafiles with the Fprint program.
Example: 

    set mode metafile
 
    set viewport left
    let xx=0.1*x - 5
    plot /x=0:100 sin(xx)

    set viewport right
    plot /x=0:100 cos(xx)/(1+xx^2)

    cancel mode metafile

then in the shell run the following command:

     Fprint -l cps -p portrait -o test.ps metafile.plt

For me this produces a valid postscript file.  I crop the boundaries
with

     cat test.ps | ps2eps -B > test.eps

and convert to pdf with

     epstopdf test.eps

If you don't have the programs ps2eps or epstopdf, try installing them
from your linux distribution.  On Ubuntu the packages are called
'ps2eps' and 'texlive-font-utils', respectively.


Kind regards,
     Hein Zelle




-- 

Dr. Hein Zelle
Senior consultant meteorology & oceanography
BMT ARGOSS

Tel:        +31 (0)527-242299
Fax:        +31 (0)527-242016
E-mail:     hein.zelle@xxxxxxxxxxxxx
Website:    www.bmtargoss.com
	    
BMT ARGOSS b.v.
Voorsterweg 28, 8316 PT Marknesse, the Netherlands
Postal address: P.O. Box 61, 8325 ZH Vollenhove, the Netherlands

Registered in The Netherlands, Registered no. 39060160.

Unless otherwise agreed by BMT ARGOSS in writing, all work,
services, goods or products supplied by BMT ARGOSS shall be subject
to and governed by BMT ARGOSS' own terms and conditions which are
available for inspection from BMT ARGOSS on request.

E-mail confidentiality notice and disclaimer:
The contents of this e-mail and any attachments are intended for the
use of the mail addressee(s) shown. If you are not that person, you
are not allowed to read it, to take any action based upon it or to
copy it, forward, distribute or disclose the contents of it and you
should please delete it from your system. BMT ARGOSS does not accept
liability for any errors or omissions in the context of this e-mail or
its attachments which arise as a result of internet transmission, nor
accept liability for statements which are those of the author and
clearly not made on behalf of BMT ARGOSS.


[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement