Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#941 Wgnuplot in Windows XP

closed
nobody
5
2007-02-23
2006-06-04
Anonymous
No

Gnuplot
(%i3) plot2d(sin(x), [x, 0, 2*%pi],
[gnuplot_preamble,
"set terminal png;set out 'myplot.png'"])$

Does not work in WindowsXP. myplot.png is inacessible
after drawing. wxmaxima, xmaxima, command line does not
responding.

If I do

gnuplot> set terminal png
Terminal type set to 'png'
Options are 'nocrop medium size 640,480 '
gnuplot> set out 'myplot.png'
gnuplot> plot sin(x)

myplot.png is inacessible, but I can work with Wgnuplot.

myplot.png became acessible after close Wgnuplot or
unlock myplot.png with Unlocker.

G N U P L O T
Version 4.0 patchlevel 0
last modified Thu Apr 15 14:44:22 CEST 2004
System: MS-Windows 32 bit

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

WinXP SP2 (5.1.2600) Pt Home Edition

My e-mail is rvru@mega.ist.utl.pt

Roman

Discussion

  • Robert Dodier
    Robert Dodier
    2006-06-05

    Logged In: YES
    user_id=501686

    Sounds like wgnuplot does not close the png output file
    after writing it, so that the file remains open (and
    therefore you get "file in use by another program" or
    something if you try to open it; I'm guessing that's what
    "inaccessible" means in this context).

    I'm just guessing. More investigation is needed.

     
  • Robert Dodier
    Robert Dodier
    2006-06-05

    • labels: --> Lisp Core - Plotting
    • summary: Wgnuplot --> Wgnuplot in Windows XP
     
  • Robert Dodier
    Robert Dodier
    2006-06-06

    Logged In: YES
    user_id=501686

    OK, I tried the example

    plot2d(sin(x), [x, 0, 2*%pi], [gnuplot_preamble, "set
    terminal png;set out 'myplot.png'"])$

    on a Win XP box, Maxima 5.9.3, and it appears that Maxima is
    waiting for Gnuplot to close before reading more user input.
    But since Gnuplot is not showing its pop-up window, there is
    no way for the user to signal that they are ready to
    proceed. (When the output is to the screen, Maxima waits
    until the user closes the window, then proceeds.)

    On a Linux box, Maxima immediately proceeds after plot2d
    (...) given above. I don't know how to make Windows Maxima
    act the same way.

     
  • Volker van Nek
    Volker van Nek
    2006-06-10

    Logged In: YES
    user_id=1269745

    plot2d(sin(x), [x, 0, 2*%pi], [gnuplot_term,ps],
    [gnuplot_preamble, "set term png;set out 'D:/myplot.png'"]);

    works, because in case gnuplot_term ps there is no '-'
    option used.

    (just for remembering. this has already been posted to the
    mailing list.)

     
  • Logged In: YES
    user_id=366498
    Originator: NO

    Since Maxima 5.10.0 recomended way to produce .png is

    plot2d(sin(x), [x, 0, 2*%pi],
    [gnuplot_term,png],
    [gnuplot_out_file,"c:\\work\\myplot.png"]);

     
    • status: open --> closed