mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-09-21 21:44:53 +08:00
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
This commit is contained in:
@@ -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]; }
|
||||
|
Reference in New Issue
Block a user