Making a SIMPLE graph, Help

Hello everyone,

I need a simple, clear script that plots a function (say, sinus between -pi and pi). I am using Dev-Cpp. And I am using Windows.


I am a beginner in C++ and study stats. And I still do not understand that on google there is no simple answer for this. If someone can save me,


Thanks,
Sincerely,
A couple of simple web searches led me to GNUPlot. Have you tried it? You don't have to write everything from scratch.
Hey,

Thanks, I have downloaded gnuplot and when I launched it I plotted 3 D and 2 D plots very easily.

But now, How to connect gnuplot and a C++ program?

Thanks,
I need a simple, clear script that plots a function
Create a script that runs your program which creates an input file for GNUPlot then runs it, I imagine.

I haven't checked if GNUPlot can read a file, but I'd be surprised if it didn't take one one the command line.
Topic archived. No new replies allowed.