Skip to content

ccerhan/gnuplot-cpp-interface

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

gnuplot-cpp-interface

This is a simplest (highly low-level) C++ interface to gnuplot based on POSIX pipes.

First, gnuplot must be installed. You can install gnuplot using macports or other package managers.

Tested for only MAC OSX.

Just copy the header and source files to your project.

Example scripts can be found in here.

std::vector<std::string> script;
script.push_back("set terminal x11");
script.push_back("reset");
script.push_back("plot sin(x)");

GNUPlot plotter;
plotter.open();
plotter.execute(script);

getchar(); // prevent graph to close

plotter.write("exit");
plotter.flush();
plotter.close();

About

Simplest C++ interface to gnuplot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages