#define _USE_MATH_DEFINES #include #include "../matplotlibcpp.h" using namespace std; namespace plt = matplotlibcpp; int main() { // plot(y) - the x-coordinates are implicitly set to [0,1,...,n) //plt::plot({1,2,3,4}); // Prepare data for parametric plot. int n = 5000; // number of data points vector x(n),y(n); for(int i=0; i