special-case all-finite

This commit is contained in:
KIU Shueng Chuan 2021-06-05 20:13:07 +08:00
parent 8997cfa07c
commit ecc3563f6d

View File

@ -1768,6 +1768,8 @@ def arrayToQPath(x, y, connect='all', finiteCheck=True):
if nonfinite_cnt / n < 2 / 100: if nonfinite_cnt / n < 2 / 100:
use_qpolygonf = True use_qpolygonf = True
finiteCheck = False finiteCheck = False
if nonfinite_cnt == 0:
connect = 'all'
if use_qpolygonf: if use_qpolygonf:
backstore = create_qpolygonf(n) backstore = create_qpolygonf(n)