From: Michael J G. <mic...@us...> - 2013-02-04 08:51:45
|
Jorge Leitão venit, vidit, dixit 31.01.2013 17:18: > ------------------------------------------------------------------------ > > *[support-requests:#3] > <http://sourceforge.net/p/pyx/support-requests/3/> pdf/eps from surface > plot crashing on Mac OS 10.6* > > *Status:* open > *Created:* Thu Jan 31, 2013 04:18 PM UTC by Jorge Leitão > *Last Updated:* Thu Jan 31, 2013 04:18 PM UTC > *Owner:* nobody > > In the example of density plot > <http://pyx.sourceforge.net/examples/graphstyles/density.html>, I tried > to use "surface plot" instead of "density plot", > > | > g = graph.graphxy(height=8, width=8, > x=graph.axis.linear(min=re_min, max=re_max, title=r"$\Re(c)$"), > y=graph.axis.linear(min=im_min, max=im_max, title=r'$\Im(c)$')) > g.plot(graph.data.points(d, x=1, y=2, color=3, title="iterations"), > [graph.style.surface()]) # <<-- I changed this line| > > g.writeEPSfile() > g.writePDFfile() > > Interestingly, I cannot open any of the files (EPS or PDF) using Mac OS > 10.6: it crashes either the Finder or the Preview. > > I have no clue why this is happening. Can anyone reproduce this behavior > on a Linux/Windows machine to confirm it is a problem of the OS? On Linux /Fedora 18 with python 2.7, recent TeXlive) I get these warnings Warning: empty file. Warning: empty file. GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return code = -1 GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return code = -1 GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return code = -1 GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return code = -1 GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return code = -1 GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return code = -1 and two output files which display fine, although they just look like the grayscale version of density(...), and in fact it looks the same when I just remove the gradient from the line above (rather than replacing density by surface). I don't get the empty file warnings for density(). I have no clue where in the source they come from. Michael |
From: André W. <wo...@us...> - 2013-02-04 22:51:00
Attachments:
smime.p7s
|
Michael, Am 04.02.2013 um 09:51 schrieb Michael J Gruber: > On Linux /Fedora 18 with python 2.7, recent TeXlive) I get these warnings > > Warning: empty file. > Warning: empty file. > GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return > code = -1 > GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return > code = -1 > GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return > code = -1 > GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return > code = -1 > GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return > code = -1 > GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return > code = -1 > > and two output files which display fine, although they just look like > the grayscale version of density(...), and in fact it looks the same > when I just remove the gradient from the line above (rather than > replacing density by surface). I don't get the empty file warnings for > density(). I have no clue where in the source they come from. > > Michael This is funny. I'm running ghostscript 9.06 here as well, and it doesn't show this behavior. I'm on OS X 10.7 and ghostscript is installed by homebrew here (http://mxcl.github.com/homebrew/), so essentially it is self-compiled. I'm not using the X11 output, though, as it is not compiled into my version of ghostscript. Instead, I used the png16m device for my test here, and it works flawlessly both on the EPS and the PDF file with the surface style. Best, André -- by _ _ _ Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim / \ \ / ) wo...@us..., http://www.wobsta.de/ / _ \ \/\/ / PyX - High quality PostScript and PDF figures (_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/ |