Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

martinruenz/gnuplot-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A trivial gnuplot interface for c++

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.