Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- main(){
- FILE *fp;
- fp=fopen("dati_png.gnu","w");
- fprintf(fp, " plot 'dteul.dat' u 1:2 \n set xlabel 'gittata massima' \n set ylabel 'dt' \n set term png \n set output 'eull.png' \n replot \n \n ");
- fclose(fp);
- system("gnuplot dati_png.gnu");
- fp=fopen("dati_ps.gnu","w");
- fprintf(fp, " plot 'dteul.dat' u 1:2 \n set xlabel 'gittata massima' \n set ylabel 'dt' \n set term post col \n set output 'eull.ps' \n replot \n \n ");
- fclose(fp);
- system("gnuplot dati_ps.gnu");
- system("rm dati_ps.gnu");
- system("rm dati_png.gnu");
- }
Advertisement
Add Comment
Please, Sign In to add comment