From ce66c836f039feda09e419bcba70eda21f81f92f Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Sun, 6 Feb 2011 15:34:46 -0800 Subject: [PATCH] --xlen now MUST be used with --stream. There was no error before, but it still didn't make any conceptual sense --- bin/feedGnuplot | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/bin/feedGnuplot b/bin/feedGnuplot index 64ad78a..8d79498 100755 --- a/bin/feedGnuplot +++ b/bin/feedGnuplot @@ -126,8 +126,9 @@ As an example, if line 3 of the input is "0 9 1 20" --autolegend Use the curve IDs for the legend - --xlen xxx Set the size of the x-window to plot. Omit this or set it - to 0 to plot ALL the data. Does not make sense with 3d plots + --xlen xxx When using --stream, sets the size of the x-window to plot. + Omit this or set it to 0 to plot ALL the data. Does not + make sense with 3d plots --xmin xxx Set the range for the x axis. These are ignored in a streaming plot @@ -258,6 +259,12 @@ OEF exit -1; } } + + if(defined $options{xlen} && !defined $options{stream} ) + { + print STDERR "--xlen does not make sense without --stream\n"; + exit -1; + } } sub getGnuplotVersion