Ignore:
Timestamp:
09/22/09 11:52:24 (15 years ago)
Author:
daqct3
Message:
added time info to gnuplot title
Location:
tools/PlotTempsViaGnuplot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tools/PlotTempsViaGnuplot/main.c

    r106 r107  
    2626
    2727        time ( &rawtime );
    28         timeinfo = localtime ( &rawtime );
    2928
    3029        startTime = (long)rawtime;
     
    3231       
    3332        startTime -= atoi(argv[2]);
     33        rawtime -= atoi(argv[2]);
    3434
    3535        plotfile = fopen ("plot_t.plt","w");
    36        
     36 
     37        timeinfo = localtime ( &rawtime );
     38        fprintf (plotfile, "set title 'Temps since %s\n", asctime (timeinfo) );
    3739       
    3840        if (plotfile!=NULL)
    3941        {
    40                 fputs ("set title 'Temperatures'\n"
    41                         "set xlabel 'time sec '\n"
     42                fputs ( "set xlabel 'time sec '\n"
    4243                        "set ylabel 'T in C '\n"
    4344                        "set grid\n"
Note: See TracChangeset for help on using the changeset viewer.