|
From: jfcarrol <jfc...@ui...> - 2007-08-09 13:52:36
|
I am using gnuplot on a OSX 10.4. (granted I usually place all my graphics in LaTex but unfortunately I need to do this one in WORD) I recognize that when I import the eps files to WORD there is no preview file in the eps gnuplot file and the figure will appear upon printing to a postscript printer. Again unfortunately, my fellow colleagues, first see this as a WORD error and after explaining it to them they want it fixed so they don't have to print out the document everytime. I have been trying to use the epstool utility app, but when I run a "epstool --test-eps *.eps *_out.eps" it indicates: PostScript appears well behaved. File claims to be EPS. FAIL: File does not comply with EPS specification. Failed I have tried to use several other options (such as gs), but the error seems to originate from the gnuplot term postscript. How does one make the export from gnuplot comply within EPS specifications? I thought once a file is eps it should be "univerisal" in some sense? Normally my term is set to: set term poscript eps enhanced, but I have also tried, set term postscript enhanced and convert the files (gs again) to eps, but I receive the same errors when I try to attach the preview file with epstool. I have read at the other forums, google groups, that OMniGraffle is another option, but it seems like epstool shoud be the quick route. Something seems to wrong from the eps output from gnuplot???? THanks, -- View this message in context: http://www.nabble.com/Attach-preview-for-gnuplot-eps-files-to-be-viewed-in-WORD-tf4242753.html#a12072795 Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: <HBB...@t-...> - 2007-08-09 15:15:13
|
jfcarrol wrote: > I am using gnuplot on a OSX 10.4. (granted I usually place all my graphics in > LaTex but unfortunately I need to do this one in WORD) I recognize that when > I import the eps files to WORD there is no preview file in the eps gnuplot > file and the figure will appear upon printing to a postscript printer. Again > unfortunately, my fellow colleagues, first see this as a WORD error and > after explaining it to them they want it fixed so they don't have to print > out the document everytime. I seem to recall having used ps2epsi for that purpose, quite a while ago. > I have been trying to use the epstool utility app, but when I run a "epstool > --test-eps *.eps *_out.eps" it indicates: > > PostScript appears well behaved. > File claims to be EPS. > FAIL: File does not comply with EPS specification. > Failed That doesn't reproduce here (official MS Windows binary of gnuplot, Cygwin binary of epstool 3.08). More to the point, there was a whole lot more output than just 4 lines. You'll have to prepare a reproducible test case before this can be investigated further. > > I have tried to use several other options (such as gs), but the error seems > to originate from the gnuplot term postscript. How does one make the export > from gnuplot comply within EPS specifications? I thought once a file is eps > it should be "univerisal" in some sense? > > Normally my term is set to: set term poscript eps enhanced, but I have also > tried, set term postscript enhanced and convert the files (gs again) to eps, > but I receive the same errors when I try to attach the preview file with > epstool. > > I have read at the other forums, google groups, that OMniGraffle is another > option, but it seems like epstool shoud be the quick route. Something seems > to wrong from the eps output from gnuplot???? > > > THanks, > > |
|
From: jfcarrol <jfc...@ui...> - 2007-08-09 15:26:23
|
My apologies, I was attempting to save line space. (note I am using gnuplot 4.2.0) mach-130:~/Desktop apple$ epstool --test-eps -b Fig1_TGA.eps Fig1_TGA_out.eps DSC Warning At line 5750: %%EndProlog %%BeginProcSet: / %%EndProcSet The number of Begin and End comments do not match. 'OK' or 'Cancel' will ignore this mismatch. Can't use --bbox with this command. Ignoring --bbox. "gs" -dNOEPS -dNOPAUSE -dBATCH -dNODISPLAY "/tmp/gsviewqxInIl" Aladdin Ghostscript 6.01 (2000-03-17) Copyright (C) 2000 Aladdin Enterprises, Menlo Park, CA. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Loading StandardSymL font from /sw/share/ghostscript/fonts/s050000l.pfb... 1788576 463329 1637348 344504 1 done. EPSWARN PASS "gs" -dNOPAUSE -dBATCH -sDEVICE=3Dbbox -c "<</PageSize [9400 9400] /PageOffset [3000 3000]>> setpagedevice" -f "/tmp/gsviewhysBdB" Aladdin Ghostscript 6.01 (2000-03-17) Copyright (C) 2000 Aladdin Enterprises, Menlo Park, CA. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Loading StandardSymL font from /sw/share/ghostscript/fonts/s050000l.pfb... 1811988 486309 1637348 346244 1 done. %%BoundingBox: 3054 3048 3412 3293 %%HiResBoundingBox: 3054.491907 3048.731907 3411.107896 3292.595900 File has %%BoundingBox: 50 50 410 302 Correct is %%BoundingBox: 54 48 412 293 File bounding box needs to be larger PostScript appears well behaved. File claims to be EPS. FAIL: File does not comply with EPS specification. Failed Hans-Bernhard Br=C3=B6ker-2 wrote: >=20 > jfcarrol wrote: >> I am using gnuplot on a OSX 10.4. (granted I usually place all my >> graphics in >> LaTex but unfortunately I need to do this one in WORD) I recognize that >> when >> I import the eps files to WORD there is no preview file in the eps >> gnuplot >> file and the figure will appear upon printing to a postscript printer. >> Again >> unfortunately, my fellow colleagues, first see this as a WORD error and >> after explaining it to them they want it fixed so they don't have to >> print >> out the document everytime. >=20 > I seem to recall having used ps2epsi for that purpose, quite a while ago. >=20 >> I have been trying to use the epstool utility app, but when I run a >> "epstool >> --test-eps *.eps *_out.eps" it indicates: >>=20 >> PostScript appears well behaved. >> File claims to be EPS. >> FAIL: File does not comply with EPS specification. >> Failed >=20 > That doesn't reproduce here (official MS Windows binary of gnuplot,=20 > Cygwin binary of epstool 3.08). More to the point, there was a whole lot= =20 > more output than just 4 lines. >=20 > You'll have to prepare a reproducible test case before this can be=20 > investigated further. >=20 >>=20 >> I have tried to use several other options (such as gs), but the error >> seems >> to originate from the gnuplot term postscript. How does one make the >> export >> from gnuplot comply within EPS specifications? I thought once a file is >> eps >> it should be "univerisal" in some sense?=20 >>=20 >> Normally my term is set to: set term poscript eps enhanced, but I have >> also >> tried, set term postscript enhanced and convert the files (gs again) to >> eps, >> but I receive the same errors when I try to attach the preview file with >> epstool. >>=20 >> I have read at the other forums, google groups, that OMniGraffle is >> another >> option, but it seems like epstool shoud be the quick route. Something >> seems >> to wrong from the eps output from gnuplot???? >>=20 >>=20 >> THanks, >>=20 >>=20 >=20 >=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 browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Gnuplot-info mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info >=20 >=20 --=20 View this message in context: http://www.nabble.com/Attach-preview-for-gnup= lot-eps-files-to-be-viewed-in-WORD-tf4242753.html#a12074534 Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: <HBB...@t-...> - 2007-08-09 16:02:01
|
jfcarrol wrote: > %%BeginProcSet: / %%EndProcSet > The number of Begin and End comments do not match. That's almost certainly caused by you not closing the file in gnuplot before trying to use it with epstool. You have to "set output" without a filename argument for that. |
|
From: <HBB...@t-...> - 2007-08-10 14:09:03
|
jfcarrol wrote: > set term postscript eps enhanced > plot ..... > set output "~/*.eps" > replot > save "~/.gnu" > quit > > Is there something incorrect with this procedure? This sequence doesn't make terribly much sense. The first "plot" output goes to your gnuplot session's standard output. Then you change the output to a disk file (whose name is illegal as stated, but I'll take it the actual name doesn't have a '*' in it), and recreate the same output to that file. So you create *two* PostScript outputs --- why? If what you really wanted is to create an EPS file, the recommended procedure would be set .... # all your settings here... set term postscript eps enhanced set output "~/foo.eps" plot ..... set output If you actually wanted the EPS to go to the standard output stream, drop both "set output" commands. For the meaning of "set output", please see the documentation. You don't really need the "save" command unless you want to record the exact circumstances of the plot for posterity. The 'quit' isn't needed either. |
|
From: jfcarrol <jfc...@ui...> - 2007-08-11 20:49:44
|
Great, it works now. For the journal I am trying to submit to, they have a graphics checker to verify the submitted graphics are in a valid form. It indicates that I need to embed the fonts (times-roman) into the eps file. When I change the command: set term eps enhanced font "Times-Roman,22" to set term eps enhanced font "Times-Roman,22" fontfile '/sw/share/texmf-dist/fonts/type1/urw/times/utmr8a.pfb' running the identical and successful eps output previously now results in a EPSTOOL failure: epstool --test-eps Fig1_TGA.eps DSC Warning At line 1870: %%EndProlog %%BeginProcSet: / %%EndProcSet The number of Begin and End comments do not match. 'OK' or 'Cancel' will ignore this mismatch. "gs" -dNOEPS -dNOPAUSE -dBATCH -dNODISPLAY "/tmp/gsview7mLYEO" Aladdin Ghostscript 6.01 (2000-03-17) Copyright (C) 2000 Aladdin Enterprises, Menlo Park, CA. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Loading StandardSymL font from /sw/share/ghostscript/fonts/s050000l.pfb... 1788576 463329 1637348 344504 1 done. EPSWARN PASS "gs" -dNOPAUSE -dBATCH -sDEVICE=bbox -c "<</PageSize [9400 9400] /PageOffset [3000 3000]>> setpagedevice" -f "/tmp/gsviewDaujlw" Aladdin Ghostscript 6.01 (2000-03-17) Copyright (C) 2000 Aladdin Enterprises, Menlo Park, CA. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Loading StandardSymL font from /sw/share/ghostscript/fonts/s050000l.pfb... 1811988 486309 1637348 346244 1 done. %%BoundingBox: 3065 3054 3404 3293 %%HiResBoundingBox: 3065.201906 3054.239907 3403.924925 3292.595900 File has %%BoundingBox: 50 50 410 302 Correct is %%BoundingBox: 65 54 404 293 PostScript appears well behaved. File claims to be EPS. FAIL: File does not comply with EPS specification. Failed Again, it looks like the same error I initially posed, but I have followed your recommendations and I can not get this error to disappear and sucessfully embed the fonts into the gnuplot eps output. How you encountered this error before? -- View this message in context: http://www.nabble.com/Attach-preview-for-gnuplot-eps-files-to-be-viewed-in-WORD-tf4242753.html#a12108922 Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: jfcarrol <jfc...@ui...> - 2007-08-09 17:01:52
|
I am a relatively new to gnuplot, but typically this is how I export my files: set term postscript eps enhanced plot ..... set output "~/*.eps" replot save "~/.gnu" quit Is there something incorrect with this procedure? You have to "set output" without a filename argument for that. <- I don't understand this comment? Can you further explain.=20 Hans-Bernhard Br=C3=B6ker-2 wrote: >=20 > jfcarrol wrote: >> %%BeginProcSet: / %%EndProcSet >> The number of Begin and End comments do not match. >=20 > That's almost certainly caused by you not closing the file in gnuplot=20 > before trying to use it with epstool. You have to "set output" without= =20 > a filename argument for that. >=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 browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Gnuplot-info mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info >=20 >=20 --=20 View this message in context: http://www.nabble.com/Attach-preview-for-gnup= lot-eps-files-to-be-viewed-in-WORD-tf4242753.html#a12076310 Sent from the Gnuplot - User mailing list archive at Nabble.com. |