Great tool and tutorial! Thanks! Is there an openGL type version, or similar? I'd like to give my program to others, but don't want them to need to install gnuPLOT. It would be neat if a library were available for c++/c.
Thank you. This is very helpful. I had some issues with gnuplot 5.4.x, but reverted to 5.2.8 as suggested and all worked well. I still have an issue with the gnuplot window not exiting cleanly and have to kill the process - any thoughts? I have tried without the -persistent option and have also tried alternative terminals: qt and wxt ("set terminal qt" or "set terminal wxt"). The wxt option made no difference - I still had to kill the process, while qt made the persistent problem worse - I couldn't even kill the process! For those discussing matplotlib in python - I haven't seen a C implementation but then I haven't looked too hard either ;) I *think* matplotlib is intended to bring Matlab-style plotting functionality to Python.
I don't think I have had any problems exiting the gnuplot window. I usually use the developer command prompt from visual studio as an admin. I will try to reproduce your problem and get back to you.
@@oxyscbw1690 Sorry, I have just realised that I caused the issue. I added another string element to 'GnuCommands' forcing a replot in an infinite while loop in gnuplot ("while(1){ replot pause 5 }").
Hmmn doesn't work. I noticed parameter, "persitent" was incorrect. Any other corrections? I don't get a plot window. I see gnuplot in task manager as soon as "'_popen()" is called. But no "demo" window. If i type the commands directly into a cmd window then the "Demo" plot window shows. But not from the c program.