mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-06-24 06:41:13 +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:
parent
1a15457b81
commit
751d902844
@ -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]; }
|
||||
|
Loading…
Reference in New Issue
Block a user