Gnuplot Cpp Save

A trivial gnuplot interface for c++

Project README

gnuplot-cpp

A trivial gnuplot interface for c++.

There are many libraries providing the same solution, such as gnuplot-iostream. gnuplot-cpp aims at being lightweight and super easy to use. It functions by piping data to a gnuplot subprocess.

Features

  • Header only
  • Lightweight (~50 lines of code)
  • Easy to use

Example usage

#include "gnuplot.h"

int main(){
    GnuplotPipe gp;
    gp.sendLine("plot [-pi/2:pi] cos(x),-(sin(x) > sin(x+1) ? sin(x) : sin(x+1))");
    return 0;
}

Result:

Example plot

Open Source Agenda is not affiliated with "Gnuplot Cpp" Project. README Source: martinruenz/gnuplot-cpp
Stars
71
Open Issues
6
Last Commit
1 year ago

Open Source Agenda Badge

Open Source Agenda Rating