#include #include #include int main() { FILE *out = fopen("test.dat","wb"); for (int t=0;t<100;t++){ fprintf(out,"%f,%f\n",(float)t,(float)sin(t/10.0)); } fclose(out); system("python3 plot.py"); }