Gnuplot in cpp
From AIRWiki
Revision as of 12:46, 4 November 2009 by MauroBrenna (Talk | contribs) (How to plot using gnuplot in your C/C++ project)
How to plot using gnuplot in your C/C++ programs
This is a little guide that shows you how you can add a plotting function in your C/C++ program.
This approach has some advantages and disadvantages:
PROS - You don't need to write on files or similar and plot in a second moment through a Matlab/Octave/Gnuplot script
CONTRAS - You don't have all the potentiality of Matlab/Octave plotting even if you can program your plotting utilities
HOW TO
- You should download gnuplot-cpp library. I suggest you to use my version LINKHERE because the official one gnuplot-cpphas problems, (see below).
- To use the plotting library you should only need to include: "gnuplot-cpp/gnuplot_i.hpp"