See More

// // g++ -g -Wall -std=c++20 -o basic -I/usr/include/python3.9 basic.cpp -lpython3.9 // g++ -g -Wall -std=c++20 -o basic $(python-config --includes) basic.cpp $(python-config --ldflags --embed) // #define _USE_MATH_DEFINES #include #include #include "../matplotlibcpp.h" namespace plt = matplotlibcpp; int main() { // Prepare data. int n = 5000; std::vector x(n), y(n), z(n), w(n,2); for(int i=0; i