Another C++ API for GnuPlot.
$ make
$ sudo make install
//file: plot.cpp
#include <ppgnuplot.h>
#include <vector>
int main(){
PPGnuPlot plot;
std::vector<double> vec({6, 5, 4, 3, 2, 1});
plot(vec);
plot.Wait();
}
Compile with:
$ g++ plot.cpp -lppgnuplot --std=c++11