arrayToPath: revert to old meaning of connect=ndarray parameter (#1461)
The i-th position of that array used to define if points (i) and (i+1) were connected, but in master it defines whether points (i-1) and (i) are connected. This commit reverts to (i) and (i+1) interpretation.
This commit is contained in:
parent
433b061e81
commit
00fd63e859
@ -1529,7 +1529,7 @@ def arrayToQPath(x, y, connect='all'):
|
|||||||
isfinite = np.isfinite(x) & np.isfinite(y)
|
isfinite = np.isfinite(x) & np.isfinite(y)
|
||||||
arr[2:]['c'] = isfinite
|
arr[2:]['c'] = isfinite
|
||||||
elif isinstance(connect, np.ndarray):
|
elif isinstance(connect, np.ndarray):
|
||||||
arr[1:-1]['c'] = connect
|
arr[2:-1]['c'] = connect[:-1]
|
||||||
else:
|
else:
|
||||||
raise Exception('connect argument must be "all", "pairs", "finite", or array')
|
raise Exception('connect argument must be "all", "pairs", "finite", or array')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user