From 78a8f3cd57a915764133f078f03653d06293ed07 Mon Sep 17 00:00:00 2001 From: evomarc Date: Mon, 11 Feb 2002 06:27:44 +0000 Subject: [PATCH] Added a title (Gen. X) to the plot so you can follow what's going on --- eo/src/utils/eoGnuplot1DSnapshot.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/eo/src/utils/eoGnuplot1DSnapshot.h b/eo/src/utils/eoGnuplot1DSnapshot.h index 8134b1dd..919f1b31 100644 --- a/eo/src/utils/eoGnuplot1DSnapshot.h +++ b/eo/src/utils/eoGnuplot1DSnapshot.h @@ -92,16 +92,10 @@ inline eoMonitor& eoGnuplot1DSnapshot::operator() (void) eoFileSnapshot::operator()(); // sends plot order to gnuplot - // assumes successive plots will have same nb of columns!!! - - char buff[1024]; ostrstream os(buff, 1024); - os << "plot"; - - os << " '" << getFileName().c_str() << - "' notitle with points ps " << pointSize ; - os << "\n"; + os << "set title 'Gen. " << getCounter() << "'; plot '" + << getFileName() << "' notitle with points ps " << pointSize << "\n"; os << '\0'; PipeComSend( gpCom, buff );