See More

// // g++ -g -Wall -o subplot2grid $(python-config --includes) subplot2grid.cpp $(python-config --ldflags --embed) // #define _USE_MATH_DEFINES #include #include "../matplotlibcpp.h" using namespace std; namespace plt = matplotlibcpp; int main() { // Prepare data int n = 500; std::vector x(n), u(n), v(n), w(n); for(int i=0; i