|
From: Samuel M. S. <sm...@sa...> - 2007-08-20 16:11:37
|
I can only generate .eps files that will successfully distill into .pdf files when I use ps.usedistiller : xpdf not ps.usedistiller : ghostscript nor ps.usedistiller : None Is this a known problem? ghostscript does work fine for .ps files just not .eps In addition when ever I save a .eps file I get the following error even though it creates the file ok : Error: No paper information available - using defaults %%BoundingBox: 78 220 543 561 %%HiResBoundingBox: 78.281998 220.589993 542.375983 560.357983 Is there a way to fix this? I have ps.papersize : letter my configuration Mac OS X 10.4.10 PPC python 2.5.1 Matplotlib 0.90.1 ipython 0.8.1 wxPython2.8-osx-unicode-2.8.3.0-universal10.4-py2.5 ghostscript 8.54 xpdf 3.02 ********************************************************************** Samuel M. Smith Ph.D. 2966 Fort Hill Road Eagle Mountain, Utah 84005-4108 801-768-2768 voice 801-768-2769 fax ********************************************************************** "The greatest source of failure and unhappiness in the world is giving up what we want most for what we want at the moment" ********************************************************************** |
|
From: Darren D. <dd...@co...> - 2007-08-20 18:26:48
|
On Monday 20 August 2007 12:11:30 pm Samuel M.Smith wrote: > I can only generate .eps files that will successfully distill > into .pdf files when I use > > ps.usedistiller : xpdf > not > ps.usedistiller : ghostscript > nor > ps.usedistiller : None > > Is this a known problem? > ghostscript does work fine for .ps files just not .eps No, it is not a known problem. I have never had a problem converting an eps to pdf, using either setting. Are you using epstopdf? Could you post an example, something that actually illustrates a problem? > In addition when ever I save a .eps file I get the following error > even though it creates the file ok > > : Error: No paper information available - using defaults > > %%BoundingBox: 78 220 543 561 > %%HiResBoundingBox: 78.281998 220.589993 542.375983 560.357983 > > Is there a way to fix this? Is this with verbose.level set to silent? |
|
From: John T. <jt...@gm...> - 2007-08-20 19:00:21
|
On 20/08/07, Darren Dale <dd...@co...> wrote: > On Monday 20 August 2007 12:11:30 pm Samuel M.Smith wrote: > > I can only generate .eps files that will successfully distill > > into .pdf files when I use > > > > ps.usedistiller : xpdf > > not > > ps.usedistiller : ghostscript > > nor > > ps.usedistiller : None > > > > Is this a known problem? > > ghostscript does work fine for .ps files just not .eps > > No, it is not a known problem. I have never had a problem converting an eps to > pdf, using either setting. Are you using epstopdf? Could you post an example, > something that actually illustrates a problem? > > > In addition when ever I save a .eps file I get the following error > > even though it creates the file ok > > > > : Error: No paper information available - using defaults > > > > %%BoundingBox: 78 220 543 561 > > %%HiResBoundingBox: 78.281998 220.589993 542.375983 560.357983 > > > > Is there a way to fix this? > > Is this with verbose.level set to silent? Interestingly I just installed ubuntu gutsy AMD64 on my machine (yes I know it's alpha) and found that I get a strangely similar problem (with subversion matplotlib). But only if i use *xpdf* as the distiller, not ghostscript. I also get the same error with the bounding box / no paper information. I put it down to ubuntu alpha status rather than matplotlib which is why I didn't report it, but this has made me think possibly otherwise?? I'll send more details if you're interested. John |
|
From: Samuel M. S. <sm...@sa...> - 2007-08-21 14:49:04
|
> > No, it is not a known problem. I have never had a problem > converting an eps to > pdf, using either setting. Are you using epstopdf? Could you post > an example, > something that actually illustrates a problem? Attached at least in a mail direct to you is a folder with testgs.eps, testgs.ps, testxpdf.eps, testxpdf.ps as well as the pdf files where successful. (matplotlib list won't let me send attachments) The testgs.eps (for test with ghostscript) does not convert to pdf using either apple preview or adobe distiller (the adobe log is included) It does however convert successfully with epstopdf so there is some subtle difference. > >> In addition when ever I save a .eps file I get the following error >> even though it creates the file ok >> >> : Error: No paper information available - using defaults >> >> %%BoundingBox: 78 220 543 561 >> %%HiResBoundingBox: 78.281998 220.589993 542.375983 560.357983 >> >> Is there a way to fix this? > > Is this with verbose.level set to silent? > No with verbose set to helpful With it silent only the " :Error: No paper information..." part prints. tthe bounding box part does not But usually helpful only prints something if there is an error or warning where as the bounding box doesn't appear to be either. > > ---------------------------------------------------------------------- > --- > 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ********************************************************************** Samuel M. Smith Ph.D. 2966 Fort Hill Road Eagle Mountain, Utah 84005-4108 801-768-2768 voice 801-768-2769 fax ********************************************************************** "The greatest source of failure and unhappiness in the world is giving up what we want most for what we want at the moment" ********************************************************************** |
|
From: Darren D. <dd...@co...> - 2007-08-21 15:49:04
|
On Tuesday 21 August 2007 10:47:33 am you wrote: > > No, it is not a known problem. I have never had a problem > > converting an eps to > > pdf, using either setting. Are you using epstopdf? Could you post > > an example, > > something that actually illustrates a problem? > > Attached is a folder with testgs.eps, testgs.ps, testxpdf.eps, > testxpdf.ps as well as the pdf files > where successful. > The testgs.eps (for test with ghostscript) does not convert to pdf > using either apple preview or adobe distiller (the adobe log is > included) > It does however convert successfully with epstopdf so there is some > subtle difference. I'm sorry, I have no idea. I guess you would have to take it up with ghostscript, that is the program that is producing the file that adobe and apple preview is having trouble with. > >> In addition when ever I save a .eps file I get the following error > >> even though it creates the file ok > >> > >> : Error: No paper information available - using defaults > >> > >> %%BoundingBox: 78 220 543 561 > >> %%HiResBoundingBox: 78.281998 220.589993 542.375983 560.357983 > >> > >> Is there a way to fix this? > > > > Is this with verbose.level set to silent? > > No with verbose set to helpful > With it silent only the " > > :Error: No paper information..." > > part prints. tthe bounding box part does not > But usually helpful only prints something if there is an error or > warning where as the > bounding box doesn't appear to be either. Again, this seems like something to take up with ghostscript. Why do they need to broadcast such a benign warning? MPL needs to catch the exit status of system calls to ghostscript, which can only be done across all platforms with os.system and subprocess. Only subprocess allows you to redirect the stdout and stderr, which is how we would silence such a message, but subprocess had some problems for us (I dont remember what) and we had to go back to os.system. Sorry I can't be more helpful. Darren |
|
From: <jk...@ik...> - 2007-08-21 16:47:24
|
Darren Dale <dd...@co...> writes: >> The testgs.eps (for test with ghostscript) does not convert to pdf >> using either apple preview or adobe distiller (the adobe log is >> included) >> It does however convert successfully with epstopdf so there is some >> subtle difference. > > I'm sorry, I have no idea. I guess you would have to take it up with > ghostscript, that is the program that is producing the file that adobe and > apple preview is having trouble with. Since this is on Mac OS X, I suspect it is the long-standing font problem; that is, matplotlib finds and uses some system fonts but does not embed them correctly. If you force the Bitstream Vera family of fonts, does it work then? >> >> : Error: No paper information available - using defaults I think this is an xpdf error message. Adding "errQuiet yes" to ~/.xpdfrc might silence it, at the cost of omitting more serious messages too. -- Jouni K. Seppänen http://www.iki.fi/jks |
|
From: Darren D. <dd...@co...> - 2007-08-21 17:10:33
|
On Tuesday 21 August 2007 12:46:05 pm Jouni K. Sepp=E4nen wrote: > Darren Dale <dd...@co...> writes: > >> The testgs.eps (for test with ghostscript) does not convert to pdf > >> using either apple preview or adobe distiller (the adobe log is > >> included) > >> It does however convert successfully with epstopdf so there is some > >> subtle difference. > > > > I'm sorry, I have no idea. I guess you would have to take it up with > > ghostscript, that is the program that is producing the file that adobe > > and apple preview is having trouble with. > > Since this is on Mac OS X, I suspect it is the long-standing font > problem; that is, matplotlib finds and uses some system fonts but does > not embed them correctly. If you force the Bitstream Vera family of > fonts, does it work then? I doubt this is the case. The ghostscript distiller does not embed any font= s,=20 it renders the text as rasters. |
|
From: Samuel M. S. <sm...@sa...> - 2007-08-21 21:04:42
|
When I diff the ghostscript generated eps which does not distill and =20
the ps which does.
There is not much difference. I know next to nothing about postscript =20=
but the differences
have to do with the prolog and trailer and nothing else.
%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: 14 188 591 593
%%HiResBoundingBox: 14.933874 188.868363 590.933874 592.068363
%!PS-Adobe-3.0
%%Pages: (atend)
%%BoundingBox: 17 194 594 598
%%HiResBoundingBox: 17.987999 194.507994 593.999982 597.527982
**** eps extra prolog*****
%%BeginProlog
save
countdictstack
mark
newpath
/showpage {} def
/setpagedevice {pop} def
%%EndProlog
%%Page 1 1
*** eps ***
%%PageTrailer
%%Trailer
cleartomark
countdictstack
exch sub { end } repeat
restore
%%Pages: 1
%%EOF
*** ps ***
%%PageTrailer
%%Trailer
%%Pages: 1
%%EOF
On 21 Aug 2007, at 11:10 , Darren Dale wrote:
> On Tuesday 21 August 2007 12:46:05 pm Jouni K. Sepp=E4nen wrote:
>> Darren Dale <dd...@co...> writes:
>>>> The testgs.eps (for test with ghostscript) does not convert to pdf
>>>> using either apple preview or adobe distiller (the adobe log is
>>>> included)
>>>> It does however convert successfully with epstopdf so there is some
>>>> subtle difference.
>>>
>>> I'm sorry, I have no idea. I guess you would have to take it up with
>>> ghostscript, that is the program that is producing the file that =20
>>> adobe
>>> and apple preview is having trouble with.
>>
>> Since this is on Mac OS X, I suspect it is the long-standing font
>> problem; that is, matplotlib finds and uses some system fonts but =20
>> does
>> not embed them correctly. If you force the Bitstream Vera family of
>> fonts, does it work then?
>
> I doubt this is the case. The ghostscript distiller does not embed =20
> any fonts,
> it renders the text as rasters.
>
> ----------------------------------------------------------------------=20=
> ---
> 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 =20
> browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
**********************************************************************
Samuel M. Smith Ph.D.
2966 Fort Hill Road
Eagle Mountain, Utah 84005-4108
801-768-2768 voice
801-768-2769 fax
**********************************************************************
"The greatest source of failure and unhappiness in the world is
giving up what we want most for what we want at the moment"
**********************************************************************
|