From 8b8c8a28e4cbc70e999f91b81527ba9d5576d7d0 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Sun, 6 Feb 2011 15:35:26 -0800 Subject: [PATCH] --xlen now implies --monotonic. Since --xlen assumes an ordering on the data, odd behavior will now be avoided --- bin/feedGnuplot | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/feedGnuplot b/bin/feedGnuplot index 8d79498..4400dcc 100755 --- a/bin/feedGnuplot +++ b/bin/feedGnuplot @@ -128,7 +128,7 @@ As an example, if line 3 of the input is "0 9 1 20" --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 + make sense with 3d plots. Implies --monotonic --xmin xxx Set the range for the x axis. These are ignored in a streaming plot @@ -265,6 +265,9 @@ OEF print STDERR "--xlen does not make sense without --stream\n"; exit -1; } + + # --xlen implies an order to the data, so I force monotonicity + $options{monotonic} = defined $options{xlen}; } sub getGnuplotVersion