From 751d902844bca9439128760ea47f4efd5a93c0df Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Fri, 14 Dec 2012 10:27:59 -0800 Subject: [PATCH] resetting latestX when clearing out data due to --monotonic --monotonic wasn't working correctly, since the x-variable wasn't being reset when monotonicity was broken. fixed --- bin/feedgnuplot | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/feedgnuplot b/bin/feedgnuplot index 4ddf1c7..a50fcce 100755 --- a/bin/feedgnuplot +++ b/bin/feedgnuplot @@ -488,9 +488,10 @@ sub mainThread { if( defined $latestX && $domain[0] < $latestX ) { - # the x-coordinate of the new point is in the past, so I wipe out all the data for this curve - # and start anew + # the x-coordinate of the new point is in the past, so I wipe out + # all the data and start anew clearCurves(); + $latestX = undef; } else { $latestX = $domain[0]; }