#19 call to gnuplot not working

closed-fixed
gretl gui (36)
5
2007-12-14
2007-12-11
No

(checked on Linux Kubuntu 7.10, gretl from CVS downloaded on 10 dec. 2007)

I opened a datafile, asked for a plot and "saved to session as icon". I opened the session icon view, right-clicked on the graph, and selected "edit plot commands". In this editor you can change some of the gnuplot settings of the plot, and you can send the commands to gnuplot trough an icon ("send to gnuplot") above.

In my case I can see how the plot is very quikly
opened and closed so really I have no enough time to see the graph. This graph should not be closed until the users decides.

Discussion

  • Riccardo "Jack" Lucchetti

    Logged In: YES
    user_id=1368575
    Originator: NO

    This sounds as if gnuplot wasn't given the "-persist" option, which is strange, since it's hardwired.

    Could you try the following?

    1) Do the same actions, up to the point when you run gnuplot. Here, instead of running gnuplot, save the gnuplot file with the name, say, "foo.plt"
    2) From the command line, run "gnuplot foo.plt". You should see somthing similar to what you describe.
    3) From the command line, run "gnuplot -persist foo.plt". The graph should stay on screen. If it doesn't, there's something wrong with your gnuplot installation.

     
  • Ignacio Diaz-Emparanza

    Logged In: YES
    user_id=493813
    Originator: YES

    I saved the gnuplot file with name foo.plt and I executed "gnuplot foo.plt". As you said, Jack, I saw the same effect as from the gretl editor, the plot appeared and dissappeared quicky. Then I run "gnuplot -persist foo.plt" and the graph stayed on the screen. So it seems that the option "-persist" is not hardwired in my gnuplot installation. If this do not disturb to other users, could it be added to the gnuplot command that gretl executes from the editor?

     
  • Riccardo "Jack" Lucchetti

    Logged In: YES
    user_id=1368575
    Originator: NO

    I'm sorry, I wasn't clear. The "-persist" option is hardwired in the string that gretl uses for spawning gnuplot. The fact that you're seeing something, however, seems to indicate that gnuplot is indeed run (so this should rule out spawning problems). What version of gnuplot are you running?

     
  • Ignacio Diaz-Emparanza

    Logged In: YES
    user_id=493813
    Originator: YES

    G N U P L O T
    Version 4.2 patchlevel 0
    last modified March 2007
    System: Linux 2.6.22-14-generic

     
  • Allin Cottrell

    Allin Cottrell - 2007-12-14

    Logged In: YES
    user_id=330339
    Originator: NO

    This seems to be a breakage in gnuplot 4.2 as supplied with Ubuntu.
    But we've worked around it in CVS.

     
  • Allin Cottrell

    Allin Cottrell - 2007-12-14
    • status: open --> closed-fixed
     

Log in to post a comment.