From ecc3563f6df9669236c4e85a3936db493050562e Mon Sep 17 00:00:00 2001 From: KIU Shueng Chuan Date: Sat, 5 Jun 2021 20:13:07 +0800 Subject: [PATCH] special-case all-finite --- pyqtgraph/functions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyqtgraph/functions.py b/pyqtgraph/functions.py index 1ab54a48..15c2cf12 100644 --- a/pyqtgraph/functions.py +++ b/pyqtgraph/functions.py @@ -1768,6 +1768,8 @@ def arrayToQPath(x, y, connect='all', finiteCheck=True): if nonfinite_cnt / n < 2 / 100: use_qpolygonf = True finiteCheck = False + if nonfinite_cnt == 0: + connect = 'all' if use_qpolygonf: backstore = create_qpolygonf(n)