iplotx 0.6.2__py3-none-any.whl → 0.6.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
iplotx/utils/geometry.py
CHANGED
|
@@ -42,14 +42,15 @@ def convex_hull(points):
|
|
|
42
42
|
pass
|
|
43
43
|
|
|
44
44
|
# Otherwise, try scipy
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
45
|
+
if hull_idx is None:
|
|
46
|
+
try:
|
|
47
|
+
from scipy.spatial import ConvexHull
|
|
48
|
+
|
|
49
|
+
# NOTE: scipy guarantees counterclockwise ordering in 2D
|
|
50
|
+
# https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.ConvexHull.html
|
|
51
|
+
hull_idx = ConvexHull(points).vertices[::-1]
|
|
52
|
+
except ImportError:
|
|
53
|
+
pass
|
|
53
54
|
|
|
54
55
|
# Last resort: our own Graham scan
|
|
55
56
|
if hull_idx is None:
|
iplotx/version.py
CHANGED
|
@@ -8,7 +8,7 @@ iplotx/network.py,sha256=SlmDgc4tbCfvO08QWk-jUXrUfaz6S3xoXQVg6rP1910,11345
|
|
|
8
8
|
iplotx/plotting.py,sha256=yACxkD6unKc5eDsAp7ZabRCAwLEXBowSMESX2oGNBDU,7291
|
|
9
9
|
iplotx/tree.py,sha256=S_9tf8Mixv9P5dq616tjxuxdDYRmUXLNAcSXTxEgm_I,27310
|
|
10
10
|
iplotx/typing.py,sha256=QLdzV358IiD1CFe88MVp0D77FSx5sSAVUmM_2WPPE8I,1463
|
|
11
|
-
iplotx/version.py,sha256=
|
|
11
|
+
iplotx/version.py,sha256=vBajZHKRfgreYlbl4HM9tYBbRK-Xcm4ddKiCB6_M6nY,66
|
|
12
12
|
iplotx/vertex.py,sha256=T9j8Copv88cbh6ztC8uSGo4tIVERuHYEIeHf53Uh2aE,14578
|
|
13
13
|
iplotx/edge/__init__.py,sha256=VkAsuxphQa-co79MZWzWErkRAkp97CwB20ozPEnpvrM,26888
|
|
14
14
|
iplotx/edge/arrow.py,sha256=C4XoHGCYou1z2alz5Q2VhdaWYEzgebtEF70zVYY_frk,15533
|
|
@@ -29,10 +29,10 @@ iplotx/ingest/providers/tree/skbio.py,sha256=O1KUr8tYi28pZ3VVjapgO4Uj-YpMuix3GhO
|
|
|
29
29
|
iplotx/style/__init__.py,sha256=XMkQZ1U63wVNo98Zo5uJAn-uQgW2OTZABAizJqiuB3s,12253
|
|
30
30
|
iplotx/style/leaf_info.py,sha256=JoX1cPjRM_k3f93jzUPQ3gPlVP4wY_n032nOVhrgelU,969
|
|
31
31
|
iplotx/style/library.py,sha256=wO-eeY3EZfAl0v21aX9f5_MiZhHuL2kGsBYA3uJkIGs,8535
|
|
32
|
-
iplotx/utils/geometry.py,sha256=
|
|
32
|
+
iplotx/utils/geometry.py,sha256=6RrC6qaB0-1vIk1LhGA4CfsiMd-9JNniSPyL_l9mshE,9245
|
|
33
33
|
iplotx/utils/internal.py,sha256=WWfcZDGK8Ut1y_tOHRGg9wSqY1bwSeLQO7dHM_8Tvwo,107
|
|
34
34
|
iplotx/utils/matplotlib.py,sha256=TutVJ1dEWYgX_-CY6MvdhRvWYqxpByGb3TKrSByYPNM,5330
|
|
35
35
|
iplotx/utils/style.py,sha256=wMWxJykxBD-JmcN8-rSKlWcV6pMfwKgR4EzSpk_NX8k,547
|
|
36
|
-
iplotx-0.6.
|
|
37
|
-
iplotx-0.6.
|
|
38
|
-
iplotx-0.6.
|
|
36
|
+
iplotx-0.6.4.dist-info/METADATA,sha256=YOeufF6IOi-7LNky1OZb6lYoBb_4WEz4IINvzM-96UA,4908
|
|
37
|
+
iplotx-0.6.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
38
|
+
iplotx-0.6.4.dist-info/RECORD,,
|
|
File without changes
|