Here is the basic idea: Gnuplot is a great plotting and fitting package, I have been using it … Run your code so that it creates a gnuplot control file. Its license is more restrictive than the General Public License, but it is still FOSS. Download the file gp424win32.zip; Create a folder named gnuplot directly under C:\ extract all of the zip file into that folder ; Use Explorer to go to C:\gnuplot, and find the bin subdirectory. Using a Plot File with Gnuplot This is a brief introduction by example to using plot files with the GNUPLOT plotting program. Choose the download for gnuplot 4.2.4. gnuplot allows us to create a template describe how our graph outlook. Let's start with the basic setup and command. I needed to use Gnuplot a little bit over the last few days, mostly to create 2D line charts, and these are my brief notes on how to get started with Gnuplot. Installing gnuplot. If you haven’t used it before, it’s an amazing tool for creating graphs and charts. Implementing gnuplot on a Windows PC is straightforward. To get started, go to www.gnuplot.info . First things first how to install Gnuplot.Use this command to install Gnuplot. Now explore setting the ranges on the X and Y axes manually. This is a sample of a gnuplot template that I use to construct a plot graph, (test1.pg) Output of 3rd just comes and goes (not visible at all). gnuplot conveniently uses the same type of terminal interface that the bash shell uses, including the ability to recall previously issued commands with the up and down arrow keys, and edit them with the left and right arrow keys. To generate the graph, we just have to execute the template, just like executing bash script. Gnuplot is a portable command-line driven graphing utility for Linux, OS/2, MS Windows, OSX, VMS, and many other platforms. I'm trying to use the gnuplot to plot a simple graph with the data from my cpp program. The source code is copyrighted but freely distributed (i.e., you don't have to pay for it). Creating Plots Using the Gnuplot Class¶ The following steps must be taken in order to create a plot using ns-3’s Gnuplot class: Modify your code so that is uses the Gnuplot class and its functions. This tells Gnuplot to use the xrange, apply a sampling of it and return it as first column for the plot command. Gnuplot is Free and Open Source Software. The first 2 produce exactly the desired output. But now i don't know how should i call or what includes should i put in my cpp program to make visual studio recognize the gnuplot. Note: In this article, Ubuntu(Linux) is used. Create a file named example.gnuplot in the same folder as your csv file and put the following in there: set datafile separator ',' plot plot.csv using 1:2 with lines, '' using 1:3 with lines The first line tells gnuplot to use a comma instead of whitespace to seperate the data (thus parsing the csv). You’ll be able to generate plots more efficiently and be able to save them for future enhancement (e.g., adding titles, more results, etc.). But for our plot we need the y-axis and not the x-axis, because the x values should be constant at 700 and are therefore given by (700) at the splot command. Call gnuplot with the name of the gnuplot control file. It is included in the Debian project, which is pretty purist in its FOSS requirements. Gnuplot is a portable command-line driven graphing utility for Linux, MS Windows, OSX and many other platforms. I use visual studio 13 to program in cpp and i have already installed the gnuplot 5.0 x64 mingw in my computer. Although -p is not of much use in this example; if you press enter in the terminal, gnuplot exits and the plot window becomes completely non interactive, except for the quit command.