diff --git a/lib/PDL/Graphics/PGPLOT/Window.pm b/lib/PDL/Graphics/PGPLOT/Window.pm index 9f10315..1979493 100644 --- a/lib/PDL/Graphics/PGPLOT/Window.pm +++ b/lib/PDL/Graphics/PGPLOT/Window.pm @@ -5166,7 +5166,7 @@ EOD } my($mask) = (isfinite $vals); $mask &= ($vals != $missing) if(defined $missing); - $mask->slice("1:-1") &= (($pp->slice("0:-2") != 0) | ($pp->slice("1:-1") != 0)); + $mask->slice("1:-1") &= long(($pp->slice("0:-2") != 0) | ($pp->slice("1:-1") != 0)); my($c,$d) = minmax(where($vals,$mask)); $min .= $c; $max .= $d;