X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttv%2Flttv%2Fsync%2Fsync_chain_lttv.c;h=4a70154884a63a59ac703abecc95dca5753a6c76;hb=e072e1abc02d780d84664fcb2c971eb5a317f664;hp=48a2be5884eb695d6e467e3106be63ff57621e59;hpb=8d7d16dd4f5f6ae09f556a9b0b477baaa93d468c;p=lttv.git diff --git a/lttv/lttv/sync/sync_chain_lttv.c b/lttv/lttv/sync/sync_chain_lttv.c index 48a2be58..4a701548 100644 --- a/lttv/lttv/sync/sync_chain_lttv.c +++ b/lttv/lttv/sync/sync_chain_lttv.c @@ -218,6 +218,10 @@ void syncTraceset(LttvTracesetContext* const traceSetContext) g_error(strerror(errno)); } + fprintf(syncState->graphsStream, + "#!/usr/bin/gnuplot\n\n" + "set terminal postscript eps color size 8in,6in\n"); + retval= chdir(cwd); if (retval == -1) { @@ -281,10 +285,6 @@ void syncTraceset(LttvTracesetContext* const traceSetContext) // Write graphs file if (optionSyncGraphs.present) { - fprintf(syncState->graphsStream, - "#!/usr/bin/gnuplot\n\n" - "set terminal postscript eps color size 8in,6in\n"); - // Cover the upper triangular matrix, i is the reference node. for (i= 0; i < syncState->traceNb; i++) { @@ -293,7 +293,8 @@ void syncTraceset(LttvTracesetContext* const traceSetContext) long pos1, pos2, trunc; fprintf(syncState->graphsStream, - "\nset output \"%03d-%03d.eps\"\n" + "\nreset\n" + "set output \"%03d-%03d.eps\"\n" "plot \\\n", i, j); if (syncState->processingModule->writeProcessingGraphsPlots)