iplotx 1.4.1__py3-none-any.whl → 1.4.2__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/edge/geometry.py
CHANGED
|
@@ -466,15 +466,17 @@ def _compute_edge_path_arc(
|
|
|
466
466
|
)
|
|
467
467
|
angle_start = atan2(*(vs[0] - center)[::-1])
|
|
468
468
|
angle_end = atan2(*(vs[1] - center)[::-1])
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
469
|
+
|
|
470
|
+
# Figure out how to draw the correct arc of the two
|
|
471
|
+
if (tension > 0) and (angle_end < angle_start):
|
|
472
|
+
angle_end += 2 * np.pi
|
|
473
|
+
elif (tension < 0) and (angle_end > angle_start):
|
|
474
|
+
angle_start += 2 * np.pi
|
|
475
|
+
|
|
474
476
|
# print(f"angle_start: {np.degrees(angle_start):.2f}")
|
|
475
477
|
# print(f"angle_end: {np.degrees(angle_end):.2f}")
|
|
476
478
|
|
|
477
|
-
naux = 30
|
|
479
|
+
naux = max(30, int(np.ceil(np.degrees(np.abs(angle_end - angle_start)))) // 3)
|
|
478
480
|
angles = np.linspace(angle_start, angle_end, naux + 2)[1:-1]
|
|
479
481
|
auxs = center + np.array([np.cos(angles), np.sin(angles)]).T * np.linalg.norm(
|
|
480
482
|
vs[0] - center
|
iplotx/version.py
CHANGED
|
@@ -3,7 +3,7 @@ iplotx/artists.py,sha256=2dBDT240zGwKb6tIc_y9pXeyU3LuYeF9wjj2tvi4KJo,730
|
|
|
3
3
|
iplotx/label.py,sha256=7eS8ByadrhdIFOZz19U4VrS-oXY_ndFYNB-D4RZbFqI,9573
|
|
4
4
|
iplotx/plotting.py,sha256=RyAdvaHSpuyJkf8DF3SJBvEXBrPmJEdovUyAlBWQvqU,16228
|
|
5
5
|
iplotx/typing.py,sha256=QLdzV358IiD1CFe88MVp0D77FSx5sSAVUmM_2WPPE8I,1463
|
|
6
|
-
iplotx/version.py,sha256=
|
|
6
|
+
iplotx/version.py,sha256=kZr-49jdcwgJr2GpCbq4T7ZJiENOw7WtxAU7m4HZCeQ,66
|
|
7
7
|
iplotx/vertex.py,sha256=_yYyvusn4vYvi6RBEW6CHa3vnbv43GnZylnMIaK4bG0,16040
|
|
8
8
|
iplotx/art3d/vertex.py,sha256=Xf8Um30X2doCd8KdNN7332F6BxC4k72Mb_GeRAuzQfQ,2545
|
|
9
9
|
iplotx/art3d/edge/__init__.py,sha256=uw1U_mMXqcZAvea-7JbU1PUKULQD1CMMrbwY02tiWRQ,8529
|
|
@@ -11,7 +11,7 @@ iplotx/art3d/edge/arrow.py,sha256=14BFXY9kDOUGPZl2fMD9gRVGyaaN5kyd-l6ikBg6WHU,36
|
|
|
11
11
|
iplotx/art3d/edge/geometry.py,sha256=76VUmpPG-4Mls7x_994dMwdDPrWWnjT7nHJsHfwK_hA,2467
|
|
12
12
|
iplotx/edge/__init__.py,sha256=8iHtkrEaxseh308VWlTgbZ7OJECqkRwSq-oJzejxH5U,26837
|
|
13
13
|
iplotx/edge/arrow.py,sha256=ymup2YT_0GVYMtZw_DSKrZqFHG_ysYteEhmoL6T8Mu4,17563
|
|
14
|
-
iplotx/edge/geometry.py,sha256=
|
|
14
|
+
iplotx/edge/geometry.py,sha256=Vt1Y_wH2Fto_rgrQbuhXUzsfBpjQLti8Qws-oAGLcUw,19745
|
|
15
15
|
iplotx/edge/leaf.py,sha256=SyGMv2PIOoH0pey8-aMVaZheK3hNe1Qz_okcyWbc4E4,4268
|
|
16
16
|
iplotx/edge/ports.py,sha256=BpkbiEhX4mPBBAhOv4jcKFG4Y8hxXz5GRtVLCC0jbtI,1235
|
|
17
17
|
iplotx/ingest/__init__.py,sha256=k1Q-7lSdotMR4RkF1x0t19RFsTknohX0L507Dw69WyU,5035
|
|
@@ -43,6 +43,6 @@ iplotx/utils/geometry.py,sha256=6RrC6qaB0-1vIk1LhGA4CfsiMd-9JNniSPyL_l9mshE,9245
|
|
|
43
43
|
iplotx/utils/internal.py,sha256=WWfcZDGK8Ut1y_tOHRGg9wSqY1bwSeLQO7dHM_8Tvwo,107
|
|
44
44
|
iplotx/utils/matplotlib.py,sha256=p_53Oamof0RI4mtV8HrdDtZbgVqUxeUZ_KDvLZSiBUQ,8604
|
|
45
45
|
iplotx/utils/style.py,sha256=vyNP80nDYVinqm6_9ltCJCtjK35ZcGlHvOskNv3eQBc,4225
|
|
46
|
-
iplotx-1.4.
|
|
47
|
-
iplotx-1.4.
|
|
48
|
-
iplotx-1.4.
|
|
46
|
+
iplotx-1.4.2.dist-info/METADATA,sha256=PWcma7vJQm7QzRsYyW3smdSJTd0extBEfRnB83c6oM0,5407
|
|
47
|
+
iplotx-1.4.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
48
|
+
iplotx-1.4.2.dist-info/RECORD,,
|
|
File without changes
|