Japanese translations
Japanese Translation
I could not understand what you want do. Do you want save plot date to text file? If so, please consult "set table" in the help. Or do you want plot a data file "foo.txt" like # foo.txt 0 0 1 1 2 4 3 9 4 16 5 25 #include <stdio.h> #include <stdlib.h> int main(void){ system("start wgnuplot --persist -e \"plot 'foo.txt'\" "); return 0; }
Do you want save plot date to text file? If so, please consult "set table" in the help.
Did you only copy gnuplot.exe to .......\Visual Studio 2015\Projects\Code1\gnuplot.exe ? But gnuplot.exe depends on th dll files in the bin folder. 1. copy also all files to the ......\Visual Studio 2015\Projects\Code1\ or 2. set path to (gnuplot install dir)\bin
Did ou only copy gnuplot.exe to .......\Visual Studio 2015\Projects\Code1\gnuplot.exe ? But gnuplot.exe depends on th dll files in the bin folder. 1. copy also all files to the ......\Visual Studio 2015\Projects\Code1\ or 2. set path to (gnuplot install dir)\bin
Sorry. VC does not have popen nor pclose but has _popen and _pclose. I do not have GUI version VC and I tried the below command line version VC 2019. #include <stdio.h> int main(void){ FILE *gp; gp = _popen("gnuplot -persist","w"); fprintf(gp, "plot sin(x)\n"); _pclose(gp); return 0; } D:\usr\Tatsu\program\gnuplot\test27>cl test1.cpp Microsoft(R) C/C++ Optimizing Compiler Version 19.22.27905 for x64 Copyright (C) Microsoft Corporation. All rights reserved. test1.cpp Microsoft (R) Incremental Linker...
Sorry. VC does not have popen nor pclose but have _popen and _pclose. I do not have GUI version VC and I tried the below command line version VC 2019. #include <stdio.h> int main(void){ FILE *gp; gp = _popen("gnuplot -persist","w"); fprintf(gp, "plot sin(x)\n"); _pclose(gp); return 0; } D:\usr\Tatsu\program\gnuplot\test27>cl test1.cpp Microsoft(R) C/C++ Optimizing Compiler Version 19.22.27905 for x64 Copyright (C) Microsoft Corporation. All rights reserved. test1.cpp Microsoft (R) Incremental Linker...