Hello
I have found the web page written in Japanese about wxt terminal on windows.
Please try to add the below
bind "Close" "if (GPVAL_TERM eq \'wxt\') exit gnuplot; else exit"
in the top of the your gnuplot script.
I have not tried myself so that I do not know the above will work or not.
Regards
Tatsuro
--- On Sat, 2011/11/12, bluebluesky wrote:
>
> Hi,
>
> I just tried gnuplot 4.5 latest build,
>
> For the attached two files plot.c and plotcm2 below,
> /* Filename: plot.c */
> #include <stdio.h>
> int main()
> {
> system("wgnuplot.exe plotcmd2 -");
> return 0;
> }
>
> #Filename: plotcmd2
> set terminal wxt
> plot [-10:10] sin(x)
>
>
> When plot.c is compiled and executed in Windows,
> a plot using terminal wxt will appear correctly.
> But, when the plot window with a graph is closed by clicking
> the 'x' on the upper right corner, the process wgnuplot.exe still
> runs in the background.
> How to make change to the program so that
> the plot window is closed, the process for wgnuplot.exe
> will also be closed?
>
> BTW, if wxt terminal is changed to windows terminal,
> wgnuplot.exe will be closed correctly. also, I will not be able to use
> pgnuplot.exe due to my GUI app.
> thus, I want to see if it can work out with wgnuplot.exe
>
> Thanks in advance.
>
> peter
> --
> View this message in context: http://old.nabble.com/gnuplot-4.5-wxt-format-not-working-tp32827555p32827555.html
> Sent from the Gnuplot - User mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
|