From: Tatsuro M. <tma...@ya...> - 2010-05-24 08:20:32
|
Hello --- nastydirk wrote: > > nas...@la... wrote: > >> I am using gnuplot to display measurment data directly out of my > >> self-written console-program. So far this works great but the problem > >> is, > >> that after gnuplot was called by my program, and the terminal with the > >> plot is shown (wxt), the user has to type "quit" in console to exit > >> gnuplot and return to my program. My question now is, if it is possible > >> to > >> automatically quit gnuplot when the terminal window is closed by the > >> user. > > > > You appear to be searching for the --persist option. > > > > > > No, I am already using this param. But it only has the effect that the > plot window doesn't close immediately. But the disadvantage of it is (as > described above) that you have to type "quit" to the console to exit > gnuplot. What I need is that gnuplot closes automatically when the plot > window is closed. > > For better understanding I have tried to illustrate what I mean here: > http://img714.imageshack.us/img714/5448/gnuplotdesc.jpg > For windows binary persist option works a little bit different way from that in unixy case. (I have tested in the cygwin gnuplot+X11) For unixy case gnuplot -persist -e "plot sin(x)" The gnuplot finished persisting the plot. (However, no key and mouse operations on plot window are active because the gnuplot interactive session is closed.) For windows case gnuplot -persist -e "plot sin(x)" The gnuplot does not finished with the prompt 'gnuplot>'. To my knowledge, at this moment, it is not possible to realize what you want to do. Regards Tatsuro -------------------------------------- 2010 FIFA World Cup News [Yahoo!Sports/sportsnavi] http://pr.mail.yahoo.co.jp/southafrica2010/ |