Re: Problems with ps/eps files

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon, 24 Nov 2008 15:43:12 -0700 (MST)

Andy,

For starters, can you email me separately the two PS files, the ones
with and without raster fill?

Thanks,

--Mary

On Mon, 24 Nov 2008, Andy Aschwanden wrote:

> Dear all,
>
> I'm doing contour plots based on triangular mesh data (according to the
> chkbay.py example). The plot is saved as a ps file and then converted to eps
> and pdf. I've attached the script file, the netcdf file can be downoaded
> from
>
> http://www.aschwanden.org/download/sg_ctrl.nc
>
>
> The problem is that both the ps and eps file can't be opened with Adobe
> Illustration (while it works with ghostview). It happens when plotting
> filled contours using:
>
> res.cnFillOn = True
> res.cnFillMode = "RasterFill"
> res.cnRasterSmoothingOn = True
>
> If I plot only contour lines, i.e. cnFillOn=False, I can open the file in
> Illustrator.
>
> I usually avoid this problem by using the converted pdf file in
> presentations, poster, and so on. However, for a publication in AGU Journal
> of Geophys. Res, I'd like to use the eps file because the linux command
> "epstopdf" introduces artifacts. Therefore, saving the pdf again as eps file
> (either pdf2eps or Illustrator) does not help.
>
> The problem seems independent on the used pyngl and Illustration versions.
> To me, it seems that there is a problem how pyngl writes the ps file for
> contour plots based on triangulated data in combination with
> RasterSmoothing.
>
> There is only one way that works so far: Converting the eps to pdf using
> Adobe Distiller, opening the pdf in Illustrator and saving it again as eps.
> Nasty, but it works.
>
> Any ideas?
>
> Andy
>
>
> --
>
> ETH Zurich
> Dr. Andy Aschwanden
> Institute for Atmospheric and Climate Science
> CHN O 15.2
> Universitaetstrasse 16
> 8092 Zurich
> SWITZERLAND
>
> andy_at_env.ethz.ch
> www.iac.ethz.ch/people/aaschwa
>
> +41 44 632 73 87 phone
> +41 44 633 10 58 fax
>
>
_______________________________________________
pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Mon Nov 24 2008 - 15:43:12 MST

This archive was generated by hypermail 2.2.0 : Tue Dec 02 2008 - 09:25:48 MST