problems with eps files and pylab

Thanks--before your mail, I hadn't thought to check other viewers to
see if it was viewer artifact and had assumed that the problem was
with the output.

Cheers,
William

···

---------- Forwarded message ----------
From: william ratcliff <william.ratcliff@...287...>
Date: Nov 6, 2007 8:27 AM
Subject: Re: [Matplotlib-users] problems with eps files and pylab
To: Darren Dale <darren.dale@...163...>

On Nov 6, 2007 7:11 AM, Darren Dale <darren.dale@...163...> wrote:

On Monday 05 November 2007 11:34:09 pm you wrote:
> Here is how it renders in windows XP--you can notice the grid and that
> the angstrom symbol does not render correctly. This is using
> gsview32, version 4.8 with ghostscript 8.5.4.
>
> However, after your email, I tried looking at it in ghostview 1.5 on a
> silicon graphics machine and found that the image rendered
> nicely, without the gridding, but that the angstrom symbol was still
> incorrect. Evince under linux is rather slow on my linux box, but
> seems to run into similar problems as I see under xp. What are you
> using for viewing?

I think these are artifacts introduced by the viewer. I don't see them with
kghostview, but I do with ggv. I have ghostscript-8.60 on my machine. I
wonder if you get the same effect if you dont pass a dpi kwarg. I'm sorry, I
dont think there is anything mpl can do about the limitations of external
postscript renderers.

Darren

> On Nov 5, 2007 7:55 PM, Darren Dale <darren.dale@...163...> wrote:
> > I don't know what you mean. Your ps and png look the same on my machine.
> > Maybe you can post a screenshot of your rendered postscript file. What
> > version of ghostscript are you using?
> >
> > On Monday 05 November 2007 6:49:17 pm you wrote:
> > > ok, so, the file I generated is ".ps", so why is the gridding occuring?
> > >
> > > Thanks,
> > > William
> > >
> > > On Nov 5, 2007 6:25 PM, Darren Dale <darren.dale@...163...> wrote:
> > > > On Monday 05 November 2007 5:25:48 pm william ratcliff wrote:
> > > > > ftp://ftp.ncnr.nist.gov/pub
> > > > >
> > > > > fig3b.ps
> > > > >
> > > > > Is what I generated, using savefig. Does this generate postscript,
> > > > > or eps output? If I changed the extension in savefig to, ".eps"
> > > > > would it generate an eps file?
> > > >
> > > > .ps is postscript, .eps is encapsulated postscript. Yes, you need to
> > > > specify .eps if you want an eps file.
> > > >
> > > > > On Nov 5, 2007 4:31 PM, Darren Dale <darren.dale@...163...> wrote:
> > > > > > On Monday 05 November 2007 3:48:11 pm william ratcliff wrote:
> > > > > > > Hi! I hope I have what is a simple question:
> > > > > > >
> > > > > > > I recently created a figure using pylab and saved it using:
> > > > > > > pylab.savefig(r'c:\fig3b.pdf',dpi=150)
> > > > > > > and it worked great. I made the same figure with a .png ending
> > > > > > > and it also worked well.
> > > > > > >
> > > > > > > However, when I tried to make an eps file for use with latex
> > > > > > > and publishing, I found:
> > > > > > > using gsview:
> > > > > > >
> > > > > > > DSC Error at line 527
> > > > > > > %%Page: 11
> > > > > > > This %%Page:line occured in the trailer, which is not legal.
> > > > > > > EPS files should be encapsulated in %%BeginDocument/
> > > > > > > %%EndDocument It is possible that an EPS file was incorrectly
> > > > > > > encapsulated and that we have been cofused by the %%Trailer in
> > > > > > > an EPS file
> > > > > > >
> > > > > > > If I ignore all DSC, then I see a figure with noticeable
> > > > > > > gridding across it. However, if I use distiller to convert it
> > > > > > > to a PDF file, it appears fine.
> > > > > > > Any ideas?
> > > > > > >
> > > > > > > Thanks,
> > > > > > > William
> > > > > > > (the files are rather large, but are available at:
> > > > > > > ftp://ftp.ncnr.nist.gov/pub/
> > > > > > > as fig3b.ps, fig3b.pdf, fig3b.png)
> > > > > >
> > > > > > Where is the eps file?
> > > > > >
> > > > > > -----------------------------------------------------------------
> > > > > >---- ---- This SF.net email is sponsored by: Splunk Inc.
> > > > > > Still grepping through log files to find problems? Stop.
> > > > > > Now Search log events and configuration files using AJAX and a
> > > > > > browser. Download your FREE copy of Splunk now >>
> > > > > > http://get.splunk.com/
> > > > > > _______________________________________________
> > > > > > Matplotlib-users mailing list
> > > > > > Matplotlib-users@lists.sourceforge.net
> > > > > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> > > >
> > > > --
> > > > Darren S. Dale, Ph.D.
> > > > dd55@...163...
> >
> > --
> >
> > Darren S. Dale, Ph.D.
> > dd55@...163...

--

Darren S. Dale, Ph.D.
dd55@...163...