#780 plot2d cannot create maxout.gnuplot

closed
nobody
5
2012-12-04
2005-09-09
No

-------------------------------------------------------------

Maxima version: 5.9.1
Maxima build date: 7:34 9/24/2004
host type: i686-pc-mingw32
lisp-implementation-type: Kyoto Common Lisp
lisp-implementation-version: GCL 2.6.5

-------------------------------------------------------------

(C1) plot2d(x,[x,0,1]);
(D1) ---> OK. plot is done
(C2) plot2d(x,[x,0,1]);
Maxima encountered a Lisp error:

Error in CATCH [or a callee]: Cannot create the file
maxout.gnuplot.

Automatically continuing.
To reenable the Lisp debugger set *debugger-hook* to
nil.

-------------------------------------------------------------

We use Windows 2000 with the actual patches from
August 2005. Since that we have the following problem.
It seems, that the stream to maxout.gnuplot is not
closed properly after the first plot is made (and the plot
window is closed) and the result is, that no further plot is
possible. The file maxout.gnuplot cannot be erased, it is
caught in a system process.

I added :if-does-not-exist :create to the with-open-file
command in plot.lisp row 1071 and I tried to use :if-
exists :rename-and-delete resp. :overwrite, but this has
no positive effect.

What can I do? I would like to have plot2d available for
my students.

Volker van Nek

Discussion

  • Volker van Nek

    Volker van Nek - 2005-09-09

    Logged In: YES
    user_id=1269745

    I made some further tests.

    If I split gnuplot-process (plot.lisp) into two parts (see
    attached file) everything works fine.

    Can somebody explain?

    (C1) load("gpl_proc.lisp");
    (D1) gpl_proc.lisp
    (C2) plot2d(x,[x,0,1]);
    wgnuplot maxout.gnuplot -
    (D2)
    (C3) system("wgnuplot maxout.gnuplot -");
    (D3) 0
    (C4) plot2d(x^2,[x,0,1]);
    wgnuplot maxout.gnuplot -
    (D4)
    (C5) system("wgnuplot maxout.gnuplot -");
    (D5) 0

    Volker van Nek

     
  • Volker van Nek

    Volker van Nek - 2005-09-09

    Logged In: YES
    user_id=1269745

    Sorry, I couldn't send the file.

    Here are the lines from my gpl_proc.lisp, where I stopped the
    process:

    (case gnuplot-term
    ($default
    ;;($system (format nil "~a ~a" $gnuplot_command
    (format t "~a ~a" $gnuplot_command
    (format nil
    $gnuplot_view_args view-file)))
    ;; -> "wgnuplot maxout.gnuplot -"

    Volker van Nek

     
  • Robert Dodier

    Robert Dodier - 2005-09-28

    Logged In: YES
    user_id=501686

    Maxima-5.9.1.9rc2 (also rc3) contains a definition of
    *maxima-tempdir* which is set to the user directory by
    default. Plot files are written to that directory. That
    should fix the maxout.gnuplot problem.

    Volker, can you try again with Maxima-5.9.1.9rc2 using the
    installer provided by Vadim Zhytnikov --
    ftp://ftp.altlinux.ru/pub/people/vvz/Maxima/maxima-5.9.1.9rc2.exe

    Please let us know if the problem still exists.

     
  • Robert Dodier

    Robert Dodier - 2006-04-10
    • labels: 460522 --> Lisp Core - Plotting
     
  • Vadim V. Zhytnikov

    Logged In: YES
    user_id=366498
    Originator: NO

    Fixed in Maxima 5.9.2.

     
  • Vadim V. Zhytnikov

    • status: open --> closed
     

Log in to post a comment.