高性能计算

c语言中调用gnuplot

2010年4月2日 阅读(580)

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);

You Might Also Like