Skip to content

ThijsWithaar/matplotlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ Wrapers around python's matplotlib

Embeds the python interpreter, so it's heavy handed. Usefull if plots have to be generated as part of a build process. It's based on matplotlib-cpp.

Differences:

  • This one is not header-only, Cmake scripts are provided
  • This one uses pybind11, to reduce the amount of plumbing code.
  • This one has an explicit object to keep the livetime of the python interpreter.

Minimal example:

#include <matplotlib.h>

int main()
{
    Eigen::ArrayXd x = Eigen::ArrayXd::LinSpaced(20, 0, 4);
    Eigen::ArrayXd y = x.sin();

    MatplotLib p;
	p.figure();
	p.plot(x, y);
}

About

C++ wrappers around python's matplotlib

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published