#1217 postscript eps file error

closed
5
2012-12-04
2007-06-06
No

use of standard eps file generation, as in:

(%i2) plot2d( sin(x),[x,-%pi, %pi] ,[gnuplot_term,ps],
[gnuplot_out_file,"c:/work2/test2.eps" ] ) $
Output file "c:/work2/test2.eps".

results in the generation of test2.eps which is 2kb and contains no plot instructions. The end of the file has an apparent error message(? I am no expert in postscript language ):

...
/hpt hpt_ def
/vpt vpt_ def
Level1 {} {
/SDict 10 dict def
systemdict /pdfmark known not {
userdict /pdfmark systemdict /cleartomark get put
} if
SDict begin [
/Title (c:/work2/test2.eps)
/Subject (gnuplot plot)
/Creator (gnuplot 4.2 patchlevel 0)
/Author (Edwin Woollett)
% /Producer (gnuplot)
% /Keywords ()
/CreationDate (Wed Jun 06 10:38:32 2007)
/DOCINFO pdfmark
end
} ifelse

When viewed with gsview32, there in no plot. Direct use of wguplot32 software results in a file of size about 14 kb.

This error observed with both v 5.11.xx and 5.12:
My build info:
Maxima version: 5.12.0
Maxima build date: 19:33 5/3/2007
host type: i686-pc-mingw32
lisp-implementation-type: GNU Common Lisp (GCL)
lisp-implementation-version: GCL 2.6.8

Edwin (Ted) Woollett

Discussion

  • Robert Dodier

    Robert Dodier - 2007-06-07
    • assigned_to: nobody --> villate
     
  • Robert Dodier

    Robert Dodier - 2007-06-07

    Logged In: YES
    user_id=501686
    Originator: NO

    Same error observed on my Win XP box + Maxima 5.12.0.

    However it works as expected with Maxima 5.11.0 on same Win XP box, and with Maxima 5.12.0 on Linux.

     
  • Ted Woollett

    Ted Woollett - 2007-06-07

    Logged In: YES
    user_id=1806103
    Originator: YES

    I observed this eps file bug on my Win XP box and using Maxima 5.11.99 and 5.12.0

    A milder version appears in ver 5.9.3 in which Maxima complained but produced a viewable plot as viewed with gsview32. The 5.9.3 complaint looks like:

    Maxima 5.9.3 http://maxima.sourceforge.net
    Using Lisp GNU Common Lisp (GCL) GCL 2.6.7 (aka GCL)

    (%i1) plot2d( sin(x),[x,-%pi, %pi] ,[gnuplot_term,ps],
    [gnuplot_out_file,"c:/work2/test6.eps" ] ) $
    'ghostview' is not recognized as an internal or external command,
    operable program or batch file.
    Output file "c:/work2/test6.eps".
    (%i2)

     
  • Robert Dodier

    Robert Dodier - 2007-06-21

    prologue.ps file from Gnuplot 4.2 distribution

     
  • Robert Dodier

    Robert Dodier - 2007-06-21
    • assigned_to: villate --> vvzhy
     
  • Robert Dodier

    Robert Dodier - 2007-06-21

    Logged In: YES
    user_id=501686
    Originator: NO

    From what I can tell, the Maxima 5.12.0 Windows installation is missing a file that Gnuplot wants, namely prologue.ps. I've taken the liberty of attaching the prologue.ps from Gnuplot 4.2 to this report. That file should be copied to ...\Maxima-5.12.0\bin\share\PostScript\prologue.ps in the Maxima installation.

    Please give that a try and let us know how it turns out.

    File Added: prologue.ps

     
  • Robert Dodier

    Robert Dodier - 2007-07-03
    • labels: --> Installation
     
  • Ted Woollett

    Ted Woollett - 2007-07-05

    Logged In: YES
    user_id=1806103
    Originator: YES

    Back from vacation! I have used the file prologue.ps, placing it in the directory structure suggested, on my computer a rather long path name:
    c:\Program Files\Maxima5.12.0\bin\share\PostScript\prologue.ps
    Maxima now correctly creates the eps file.
    Thanks.
    Ted Woollett

     
  • Vadim V. Zhytnikov

    Logged In: YES
    user_id=366498
    Originator: NO

    Fixed in Maxima CVS. Please wait for the forthcoming 5.13 rc1 to test/

     
  • Robert Dodier

    Robert Dodier - 2007-08-01
    • milestone: --> To_be_reviewed
     
  • Robert Dodier

    Robert Dodier - 2007-08-01

    Logged In: YES
    user_id=501686
    Originator: NO

    Marking this item for review.

     
  • Robert Dodier

    Robert Dodier - 2008-02-06
    • status: open --> closed
     
  • Robert Dodier

    Robert Dodier - 2008-02-06

    Logged In: YES
    user_id=501686
    Originator: NO

    Tested w/ 5.14.0 on Windows Vista, problem not observed (complete Postscript file output). Closing this report as fixed.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks