Introduction to gnuplot — Plot Style
GNUPLOT使用手册
FILE * command;
command = popen("gnuplot","w");
///
fprintf(command,"set terminal png \n");
fprintf(command,"set output ‘test.png’\n");
fprintf(command,"set multiplot\n");
fprintf(command,"plot ‘%s’w lines\n",filename);
fprintf(command,"plot ‘%s’w lines\n",filtered_filename);
fflush(command);
/////
pclose(command);