mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-09-24 15:38:08 +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 )
|
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
|
# the x-coordinate of the new point is in the past, so I wipe out
|
||||||
# and start anew
|
# all the data and start anew
|
||||||
clearCurves();
|
clearCurves();
|
||||||
|
$latestX = undef;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{ $latestX = $domain[0]; }
|
{ $latestX = $domain[0]; }
|
||||||
|
Reference in New Issue
Block a user