From: vijay b. <vij...@gm...> - 2006-07-11 04:45:13
|
i want to call gnuplot from a vc++ program and make it run a file .this file (say output.txt) has the mulitplot option .i am at present using either the "system" command or "RunSilent" command . in both cases gnuplot opens and plots the graphs , but if i click the mouse once one of the plots disappear . on the other hand if i just call gnuplot and then run this file , it works perfectly .could some one help me ? here is the file "output.txt": cd 'c:/' set multiplot set size 1,0.5 set origin 0.0,0.5 set title 'phase plot' set xlabel'Frequency' set ylabel'phase' set key below plot 'data.dat' using 1:6t 'phase' with linespoints set origin 0.0,0.0 set title 'amplitude plot' set xlabel 'Frequency' set ylabel 'amp' set key below plot 'data.dat' using 1:7t 'amp' with linespoints unset multiplot i use the command as : system ("gnuplot output"); or RunSilent ("gnuplot output",""); ps: i use gnuplot-4.0.0 on windows xp |